Bug 147291 - [formatter] content of <pre></> is endlessly indented
Summary: [formatter] content of <pre></> is endlessly indented
Status: VERIFIED DUPLICATE of bug 99738
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1.1   Edit
Hardware: PC Windows XP
: P3 minor (vote)
Target Milestone: 3.2.2   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-15 10:07 EDT by Bogdan Butnaru CLA
Modified: 2007-02-06 02:26 EST (History)
1 user (show)

See Also:


Attachments

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