Bug 78002 - formatting java code in comments doesnt work
Summary: formatting java code in comments doesnt work
Status: RESOLVED DUPLICATE of bug 52921
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.0.1   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-05 17:34 EST by Hansgeorg Schwibbe CLA
Modified: 2004-11-08 06:07 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 Hansgeorg Schwibbe CLA 2004-11-05 17:34:04 EST
Activate all code format options for comments and try to auto format this
example more than one time:

/**
 * <pre>
 * System.out.println(quot;1&quot;);
 * </pre>
 */

After the first auto format it looks like:
/**
 * <pre>
 * 
 *  System.out.println(quot;1&quot;);
 *  
 * </pre>
 */

After the second auto format it looks like:
/**
 * <pre>
 * 
 *  
 *   System.out.println(quot;1&quot;);
 *   
 *  
 * </pre>
 */

And after the 10. auto format it looks like:
/**
 * <pre>
 * 
 *  
 *   
 *    
 *     
 *      
 *       
 *        
 *         
 *          
 *           System.out.println(quot;1&quot;);
 *           
 *          
 *         
 *        
 *       
 *      
 *     
 *    
 *   
 *  
 * </pre>
 */
Comment 1 Dani Megert CLA 2004-11-08 06:07:41 EST

*** This bug has been marked as a duplicate of 52921 ***