Community
Participate
Working Groups
Using <pre> tag inside of javadoc comments in java source code will continually get indented and extra lines added before and after the content when a Source Format option is used. To recreate the problem, create a java class in Web or Java Perspective. Add a javadoc comment like /** * foo bar * <pre> * fooBar = fooBar() * </pre> */ Then right click on the source pane and select Source > Format (or use Ctrl-Shift-F). You will see that a line is added before and after the single line of the preformatted block and the text will also be indented. If you format repeatedly it will continue indenting the text between the <pre> tags.
*** This bug has been marked as a duplicate of 99738 ***
The shift towards the right is a true duplicate of bug 99738 and has been fixed. Opening the fup bug 170584 to track the lines addition issue, which has not been addressed yet. Verified for 3.2.2 using build M20070112-1200.
Verified for 3.3 M5 using build I20070205-0009