soundasleep / iacleaner

Automatically exported from code.google.com/p/iacleaner
0 stars 0 forks source link

Comments break indentation #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Try to format a script like this:

if (test) { // comment
 foo(); }

What is the expected output? What do you see instead?
Expected:
if (test) {
   // comment
   foo();
}

Actual:
if (test) { // comment
 foo();
}

I think this occurs because the comments are removed, the newlines are
removed as part of the whitespace, and when comments are re-inserted, they
are only reinserted with a "\n" ignoring the indenting around it.

This may also occur with block comments.

Original issue reported on code.google.com by soundasleep on 21 Jan 2009 at 7:23

GoogleCodeExporter commented 9 years ago
This has been resolved with the new inline cleaner (r90+).

Original comment by soundasleep on 6 Jul 2009 at 11:33