Bug 169330 - Wrong javadoc formatting when using @ within <pre> tag
Summary: Wrong javadoc formatting when using @ within <pre> tag
Status: VERIFIED DUPLICATE of bug 99738
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.3   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.2.2   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-02 07:50 EST by Jochen Hiller CLA
Modified: 2007-02-06 02:38 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 Jochen Hiller CLA 2007-01-02 07:50:42 EST
Build ID: 3.3M4, I20061214-1445

Following javadoc will be wrong formatted:

/**
 * <pre>
 * {@literal @}Test public void testBla() {
 *   assertEquals(42, 42);
 * }
 * </pre>
 */

A code format (using Eclipse builtin configuration) will indent the text within <pre>...</pre> with one space more (each time when doing a format).

/**
 * <pre>
 *  {@literal @}Test public void testBla() {
 *    assertEquals(42, 42);
 *  }
 * </pre>
 */

If developers are only using code formatting, this will always change javadocs, which is very annoying.

Does only happen, when using doc including "@".
Comment 1 Dani Megert CLA 2007-01-02 09:48:02 EST

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