Bug 171485

Summary: Autoformating javadoc comment adds extra space under <pre> tags
Product: [Eclipse Project] JDT Reporter: Sachin <smalltalker>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: VERIFIED DUPLICATE QA Contact:
Severity: minor    
Priority: P3    
Version: 3.2.1   
Target Milestone: 3.3 M5   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Sachin CLA 2007-01-23 20:18:34 EST
Build ID: M20060921-0945

Steps To Reproduce:
For example take following javadoc comment:

/**
 * This is outside "pre" tag, so it's fine.
 * <pre>
 * Field name         Flag name
 * field1             field1Exist
 * field2             field2Exist
 * field3             field3Exist
 * </pre>
 */

Then do auto-formatting by Ctrl + Shift + F five times and the javadoc comment will look like following:

/**
 * This is outside "pre" tag, so it's fine.
 * 
 * <pre>
 *      Field name         Flag name
 *      field1             field1Exist
 *      field2             field2Exist
 *      field3             field3Exist
 * </pre>
 */

It adds extra space for every line under <pre> tag, every time you do auto-formatting.

More information:
Comment 1 Sachin CLA 2007-01-23 20:18:34 EST
Build ID: M20060921-0945

Steps To Reproduce:
For example take following javadoc comment:

/**
 * This is outside "pre" tag, so it's fine.
 * <pre>
 * Field name         Flag name
 * field1             field1Exist
 * field2             field2Exist
 * field3             field3Exist
 * </pre>
 */

Then do auto-formatting by Ctrl + Shift + F five times and the javadoc comment will look like following:

/**
 * This is outside "pre" tag, so it's fine.
 * 
 * <pre>
 *      Field name         Flag name
 *      field1             field1Exist
 *      field2             field2Exist
 *      field3             field3Exist
 * </pre>
 */

It adds extra space for every line under <pre> tag, every time you do auto-formatting.

More information:
Comment 2 Dani Megert CLA 2007-01-24 02:43:37 EST
As far as I know this has recently been fixed by Olivier.
Comment 3 Benno Baumgartner CLA 2007-01-24 03:39:49 EST

*** This bug has been marked as a duplicate of bug 99738 ***
Comment 4 Olivier Thomann CLA 2007-02-05 11:56:05 EST
Verified for 3.3M5 using I20070205-0009. This is indeed a dup of bug 99738.