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
Original issue reported on code.google.com by
soundasleep
on 21 Jan 2009 at 7:23