Community
Participate
Working Groups
The code formatter acts a little silly in the following situation: 1) You have "braces->class declaration" set to "next line" 2) You have "white space->parameterized types->type parameters->after closing angle bracket" set The intent here, of course, is that the whitespace after the angle bracket be a newline. However, the formatter generates something like: public class BoxOfComponents<C extends Component> { // ... } It apparently adds the newline from setting 1) then sees whether it ought to add a space as per setting 2). Setting it to do these in the reverse order or not add a space if there's already a newline would fix the problem.
The second statement is what should be done. "not add a space if there's already a newline would fix the problem."
Fixed and released in HEAD. Regression test added. The bug was that new line was not resetting the pendingSpace variable.
Changes in the Scribe class only.
Verified in 20050330-0500