| Summary: | [Formatter] The off tag is not respected at block comments | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Oliver Kopp <oliver.kopp> |
| Component: | Core | Assignee: | Mateusz Matela <mateusz.matela> |
| Status: | CLOSED DUPLICATE | QA Contact: | |
| Severity: | minor | ||
| Priority: | P3 | CC: | mateusz.matela, oliver.kopp, the.ubik |
| Version: | 4.2.2 | ||
| Target Milestone: | 4.8 M5 | ||
| Hardware: | PC | ||
| OS: | Windows 8 | ||
| Whiteboard: | To be verified for 4.8 M5 | ||
It is not only inside block comments :
class Test {
// formatter:off
/*
private void meth() {
// this will wrap
}
*/
}
Ctrl+shift+F
class Test {
// formatter:off
/*
* private void meth() { // this will wrap }
*/
}
Should I fill a new one (as I intended originally) ?
I've checked both cases and they work correctly now (except that Palmer used "formatter:off" instead of "@formatter:off"), probably since the formatter rewrite in Eclipse Mars. *** This bug has been marked as a duplicate of bug 303519 *** |
The @formatter:off tag is not respected in block comments: /** * @formatter:off * This line gets moved * @formatter:on */ public static void test() { } gets /** * @formatter:off This line gets moved * @formatter:on */ public static void test() { }