Bug 113545 - CodeFormatter formats content of <pre> Tags in ApiDoc
Summary: CodeFormatter formats content of <pre> Tags in ApiDoc
Status: VERIFIED DUPLICATE of bug 99738
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1.1   Edit
Hardware: PC Windows XP
: P3 minor (vote)
Target Milestone: 3.2.2   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-24 11:23 EDT by Stefan Küttner CLA
Modified: 2007-02-06 02:23 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 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