Bug 96268 - Already formatted <pre> comments are indented again in subsequent formattings
Summary: Already formatted <pre> comments are indented again in subsequent formattings
Status: VERIFIED DUPLICATE of bug 99738
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 3.2.2   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-23 02:34 EDT by baikuo21 CLA
Modified: 2007-02-06 01:34 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 baikuo21 CLA 2005-05-23 02:34:18 EDT
<pre> javadoc comments are indented with white blanks while being formatted.
If you format them again they are indented again.
After several times there are so many white blanks
 that the comment contents are not visible within the editor.

<setting id="org.eclipse.jdt.core.formatter.comment.clear_blank_lines"
value="true"/>
<setting id="org.eclipse.jdt.core.formatter.comment.format_comments" value="true"/>
<setting id="org.eclipse.jdt.core.formatter.comment.format_header" value="true"/>
<setting id="org.eclipse.jdt.core.formatter.comment.format_html" value="true"/>
<setting id="org.eclipse.jdt.core.formatter.comment.format_source_code"
value="true"/>
<setting
id="org.eclipse.jdt.core.formatter.comment.indent_parameter_description"
value="true"/>
<setting id="org.eclipse.jdt.core.formatter.comment.indent_root_tags" value="true"/>
<setting
id="org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags"
value="insert"/>
<setting
id="org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter"
value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.comment.line_length" value="90"/>
Comment 1 Philipe Mulet CLA 2005-05-23 04:26:46 EDT
Olivier: remember to involve Dani if necessary.
Comment 2 Olivier Thomann CLA 2005-05-24 08:38:35 EDT

*** This bug has been marked as a duplicate of 52921 ***
Comment 3 baikuo21 CLA 2005-06-19 11:18:34 EDT
In 3.1RC3, this bus has not been fixed yet, it may not be a duplicate of 52921.

/**
 * <pre>
 * a
 * b
 * </pre>
 */

is formatted to

/**
 * <pre>
 *  a
 *  b
 * </pre>
 */

See the additional comment #12 of bug 52921
Comment 4 Dani Megert CLA 2005-06-19 11:27:29 EDT

*** This bug has been marked as a duplicate of 99738 ***
Comment 5 Maxime Daniel CLA 2007-01-15 23:48:06 EST
Verified for 3.2.2 using build M20070112-1200.
Comment 6 Eric Jodet CLA 2007-02-06 01:34:35 EST
Verified for 3.3 M5 using build I20070205-0009