Bug 153419 - [formatter] Repeatedly formatting code moves javadoc pre contents to the right
Summary: [formatter] Repeatedly formatting code moves javadoc pre contents to the right
Status: VERIFIED DUPLICATE of bug 99738
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 3.2.2   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-10 06:46 EDT by Axel CLA
Modified: 2007-02-06 02:27 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Axel CLA 2006-08-10 06:46:19 EDT
Hello,

With the following formatter settings enabled:
- Enable comment formatting
- Format HTML tags
- Format Java code snippets

When you repeatedly format the following code:
    /**
     * <p>
     * Description
     * </p>
     * 
     * <p>
     * A Dom tree like this:
     * 
     * <pre>
     *   &lt;com.mypackage.MyJavaBean&gt;
     *     &lt;myProperty&gt;myValue&lt;/myProperty&gt;
     *   &lt;/com.mypackage.MyJavaBean&gt;
     * </pre>
     * 
     * will be converted into a java bean of type com.mypackage.MyJavaBean with a property named
     * myProperty with the value myValue.
     * </p>
     * 
     * @param param The param whose value should be retrieved.
     * @return The value of the param, as a javabean.
     * @throws Exception Thrown when the param value could not be obtained.
     */
    Object getParamValue(Object param) throws Exception;


The contents of the pre tag keep on moving to the right.

Disabling Format Java code snippets fixes the issue.

Axel
Comment 1 Olivier Thomann CLA 2006-08-13 19:50:23 EDT

*** This bug has been marked as a duplicate of 99738 ***
Comment 2 Maxime Daniel CLA 2007-01-16 00:06:45 EST
Verified for 3.2.2 using build M20070112-1200.
Comment 3 Eric Jodet CLA 2007-02-06 02:27:49 EST
Verified for 3.3 M5 using build I20070205-0009