| Summary: | Java formatter needs to break before paren encapsulating an inline tag | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Terry Parker <tparker> |
| Component: | Core | Assignee: | Mateusz Matela <mateusz.matela> |
| Status: | CLOSED DUPLICATE | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | mateusz.matela |
| Version: | 4.5 | ||
| Target Milestone: | 4.6 M1 | ||
| Hardware: | PC | ||
| OS: | Mac OS X | ||
| Whiteboard: | |||
It was fixed for 4.6. I guess it wasn't backported into 4.5.1 because it was quite an old bug, not something introduced by the new formatter. *** This bug has been marked as a duplicate of bug 348338 *** |
In the JGit project I added the equivalent of the following JavaDoc: /** Walks all of the reachable commits via the branch tips ({@code peeledWants}), stores them in {@code commitsByOldest}. */ At 1 level of indentation, tabs set to 4 and a line length of 80, formatting the code in Eclipse 4.5.0 this breaks as follows: /** * Walks all of the reachable commits via the branch tips ( * {@code peeledWants}), stores them in {@code commitsByOldest}. */ Because the formatter breaks after the opening paren, the rendered output is "... ( peeledWants) ...". Note the extra space before between the opening paren and "peeledWants".