Bug 113545

Summary: CodeFormatter formats content of <pre> Tags in ApiDoc
Product: [Eclipse Project] JDT Reporter: Stefan Küttner <Stefan.Kuettner>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: VERIFIED DUPLICATE QA Contact:
Severity: minor    
Priority: P3    
Version: 3.1.1   
Target Milestone: 3.2.2   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Stefan Küttner CLA 2005-10-24 11:23:23 EDT
If you place a pre-formatted text snipped into the JavaDoc Comment using the
HTML <pre> Tag and format the code using Strg+Alt+F, the pre-formatted text
becomes indented.

Example:
/**
 * <pre>
 * This
 *     is
 *       pre-formatted.
 * </pre>
 */

becomes formatted to:

/**
 * <pre>
 * 
 *  This
 *      is
 *        pre-formatted.
 *  
 * </pre>
 */

After 10 times formatting this leads to:

/**
 * <pre>
 * 
 *  
 *   
 *    
 *     
 *      
 *       
 *        
 *         
 *          
 *           This
 *               is
 *                 pre-formatted.
 *           
 *          
 *         
 *        
 *       
 *      
 *     
 *    
 *   
 *  
 * </pre>
 */
Comment 1 Stefan Küttner CLA 2005-11-01 03:27:18 EST

*** This bug has been marked as a duplicate of 99738 ***
Comment 2 Maxime Daniel CLA 2007-01-15 23:56:17 EST
Verified for 3.2.2 using build M20070112-1200.
Comment 3 Eric Jodet CLA 2007-02-06 02:23:24 EST
Verified for 3.3 M5 using build I20070205-0009