Bug 151457

Summary: Code formatter pushes code in Javadoc tags to the right per format invocation if code is malformed
Product: [Eclipse Project] JDT Reporter: Remy Suen <remy.suen>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: VERIFIED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: mlists
Version: 3.2   
Target Milestone: 3.2.2   
Hardware: PC   
OS: Linux   
Whiteboard:

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