Bug 194533 - Pre tag causes incremental shifting
Summary: Pre tag causes incremental shifting
Status: RESOLVED DUPLICATE of bug 99738
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.2.1   Edit
Hardware: PC Linux
: P3 minor (vote)
Target Milestone: 3.2.2   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-26 21:13 EDT by Damian CLA
Modified: 2007-07-04 11:04 EDT (History)
0 users

See Also:


Attachments
Settings of my formatter when producing the bug. (26.38 KB, text/xml)
2007-06-26 21:17 EDT, Damian CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Damian CLA 2007-06-26 21:13:11 EDT
Anything beyond a single word within pre tags causes incremental spacing (each formatting adds a new space to the start). For instance, 
/**
 * <pre>
 * foo bar
 * um
 * </pre>
 */

becomes:
/**
 * <pre>
 *    foo bar
 *    um
 * </pre>
 */

after being formatted three times. This is a product of having the "Format Java code snippets" in the comments section of the formatting options set.
Comment 1 Damian CLA 2007-06-26 21:17:44 EDT
Created attachment 72551 [details]
Settings of my formatter when producing the bug.
Comment 2 Olivier Thomann CLA 2007-07-04 11:04:21 EDT

*** This bug has been marked as a duplicate of bug 99738 ***