Bug 171485 - Autoformating javadoc comment adds extra space under <pre> tags
Summary: Autoformating javadoc comment adds extra space under <pre> tags
Status: VERIFIED DUPLICATE of bug 99738
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.2.1   Edit
Hardware: PC Windows XP
: P3 minor (vote)
Target Milestone: 3.3 M5   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-23 20:18 EST by Sachin CLA
Modified: 2007-02-05 11:56 EST (History)
0 users

See Also:


Attachments

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