Bug 147291

Summary: [formatter] content of <pre></> is endlessly indented
Product: [Eclipse Project] JDT Reporter: Bogdan Butnaru <bogdanb>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: VERIFIED DUPLICATE QA Contact:
Severity: minor    
Priority: P3 CC: bogdanb
Version: 3.1.1   
Target Milestone: 3.2.2   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Bogdan Butnaru CLA 2006-06-15 10:07:45 EDT
I noticed something very weird: I have a Javadoc comment containing a multi-line 
code snippet, like this:

/**
 * <pre>
 * [lines of code]
 * </pre>
 */

(copied from my file, the bug works on it).

The strange thing is, every time I autoformat (CTRL+SHIFT+"F") the content between the two <pre/> tags is indented by a blank space. If I do it ten times, ten spaces are added.

I have "Format Java code snippets" activated in the options, and aside from this issue it works. (If there is correct code between the tags it is correctly formatted, but it's moved to the right by one character at each stage.)

I tried using the sets of built-in rules, but it still happens. I tried it on another computer and it doesn't happen there. I'm stumped, where should I look?
Comment 1 Olivier Thomann CLA 2006-06-15 12:57:09 EDT

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