Bug 161184

Summary: Source formatting adds whitespace too often in javadoc
Product: [Eclipse Project] JDT Reporter: Steve Francisco <stephen.francisco>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: VERIFIED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: daniel_megert
Version: 3.2.1   
Target Milestone: 3.2.2   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Steve Francisco CLA 2006-10-17 01:31:22 EDT
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.
Comment 1 Dani Megert CLA 2006-10-17 03:41:26 EDT

*** This bug has been marked as a duplicate of 99738 ***
Comment 2 Maxime Daniel CLA 2007-01-16 00:33:13 EST
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.
Comment 3 Eric Jodet CLA 2007-02-06 02:29:03 EST
Verified for 3.3 M5 using build I20070205-0009