Bug 151457 - Code formatter pushes code in Javadoc tags to the right per format invocation if code is malformed
Summary: Code formatter pushes code in Javadoc tags to the right per format invocation...
Status: VERIFIED DUPLICATE of bug 99738
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.2   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 3.2.2   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-21 15:38 EDT by Remy Suen CLA
Modified: 2007-02-06 02:27 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 Remy Suen CLA 2006-07-21 15:38:27 EDT
The sample javadoc comment below will illustrate the error.

/**
 * <pre>
 * public void v() {
 * </pre>
 */

When a format is invoked with Ctrl+Shift+F, the block will turn into:

/**
 * <pre>
 *  public void v() {
 * </pre>
 */

And every format will keep pushing the block of text to the right by one character. Adding a closing brace will immediately rectify the problem.
Comment 1 Dani Megert CLA 2006-07-22 12:11:31 EDT

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