Bug 153419

Summary: [formatter] Repeatedly formatting code moves javadoc pre contents to the right
Product: [Eclipse Project] JDT Reporter: Axel <xxxxxxyyyyyy171>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: VERIFIED DUPLICATE QA Contact:
Severity: normal    
Priority: P3    
Version: 3.2   
Target Milestone: 3.2.2   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

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