diff --git a/src/dfmt/formatter.d b/src/dfmt/formatter.d index b6b3baa..6212b81 100644 --- a/src/dfmt/formatter.d +++ b/src/dfmt/formatter.d @@ -482,6 +482,8 @@ private: { if (currentIs(tok!";")) { + indents.popWrapIndents(); + indentLevel = indents.indentLevel; writeToken(); if (index >= tokens.length) { diff --git a/tests/allman/issue0349.d.ref b/tests/allman/issue0349.d.ref new file mode 100644 index 0000000..abc6a82 --- /dev/null +++ b/tests/allman/issue0349.d.ref @@ -0,0 +1,5 @@ +import super_long_import_module_name : withSuperLongSymbolNames, + andAlsoLotsOfThem; + +private: +void foo(); diff --git a/tests/issue0349.d b/tests/issue0349.d new file mode 100644 index 0000000..613cceb --- /dev/null +++ b/tests/issue0349.d @@ -0,0 +1,4 @@ +import super_long_import_module_name : withSuperLongSymbolNames, andAlsoLotsOfThem; + +private: +void foo(); diff --git a/tests/otbs/issue0349.d.ref b/tests/otbs/issue0349.d.ref new file mode 100644 index 0000000..abc6a82 --- /dev/null +++ b/tests/otbs/issue0349.d.ref @@ -0,0 +1,5 @@ +import super_long_import_module_name : withSuperLongSymbolNames, + andAlsoLotsOfThem; + +private: +void foo();