Bug 169330

Summary: Wrong javadoc formatting when using @ within <pre> tag
Product: [Eclipse Project] JDT Reporter: Jochen Hiller <jochen.hiller>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: VERIFIED DUPLICATE QA Contact:
Severity: normal    
Priority: P3    
Version: 3.3   
Target Milestone: 3.2.2   
Hardware: PC   
OS: Windows XP   
Whiteboard:

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