Bug 259899

Summary: [formatter] Code formatter does not fix wrong code indentation
Product: [Eclipse Project] JDT Reporter: Hansgeorg Schwibbe <hansgeorg.schwibbe>
Component: CoreAssignee: Frederic Fusier <frederic_fusier>
Status: VERIFIED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: daniel_megert, remy.suen, srikanth_sankaran
Version: 3.4.1   
Target Milestone: 3.6 M1   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Montage (before format, after format) none

Description Hansgeorg Schwibbe CLA 2009-01-03 16:42:16 EST
Created attachment 121473 [details]
Montage (before format, after format)

Build ID: M20080911-1700

Steps To Reproduce:
1. Format the following code:
/**
      * The <code>Test</code> description.
      * 
      * <pre>
      * wrong indentation
      * wrong indentation
      * wrong indentation
      * @Override
      * wrong indentation
      * wrong indentation
      * wrong indentation
      * </pre>
 */
public class Test
{
}
2. The indentation of the pre formatted code will not be corrected


More information:
Comment 1 Dani Megert CLA 2009-01-05 03:51:05 EST
Please attach your formatter profile.
Comment 2 Frederic Fusier CLA 2009-01-05 10:36:41 EST
I cannot reproduce using same build with Eclipse built-in profile.

Here's the output I get:
/**
 * The <code>Test</code> description.
 * 
 * <pre>
 * wrong indentation
 * wrong indentation
 * wrong indentation
 * &#064;Override
 * wrong indentation
 * wrong indentation
 * wrong indentation
 * </pre>
 */
public class Test {
}
Comment 3 Frederic Fusier CLA 2009-06-23 04:48:06 EDT
(In reply to comment #2)
Closing as WORKSFORME.

Please reopen with the requested information...
Comment 4 Srikanth Sankaran CLA 2009-08-04 05:05:46 EDT
Verified for 3.6M1 using build I20090803-1300