Bug 259899 - [formatter] Code formatter does not fix wrong code indentation
Summary: [formatter] Code formatter does not fix wrong code indentation
Status: VERIFIED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.4.1   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 3.6 M1   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-03 16:42 EST by Hansgeorg Schwibbe CLA
Modified: 2009-08-04 05:05 EDT (History)
3 users (show)

See Also:


Attachments
Montage (before format, after format) (129.82 KB, image/jpeg)
2009-01-03 16:42 EST, Hansgeorg Schwibbe CLA
no flags Details

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