Bug 161184 - Source formatting adds whitespace too often in javadoc
Summary: Source formatting adds whitespace too often in javadoc
Status: VERIFIED DUPLICATE of bug 99738
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.2.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.2.2   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-17 01:31 EDT by Steve Francisco CLA
Modified: 2007-02-06 02:29 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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