Bug 97202

Summary: [formatting] Code formatting does not work in non-javadoc comments (using <PRE>)
Product: [Eclipse Project] JDT Reporter: Christopher Oezbek <bugzilla>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: RESOLVED DUPLICATE QA Contact:
Severity: minor    
Priority: P3    
Version: 3.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Christopher Oezbek CLA 2005-05-30 05:39:04 EDT
<pre>-formatting does not work in non-javadoc comments
 
(Be aware of the /* instead of /**)
 
/*
 * <pre>
 * public Object[] getChildren(Object parentElement) {
 *     if (parentElement instanceof MovingBox) {
 *         MovingBox box = (MovingBox) parentElement;
 *         return concat(box.getBoxes().toArray(), box.getBooks().toArray(), box
 *                 .getGames().toArray());
 *     }
 *     return EMPTY_ARRAY;
 * }
 * </Pre>
 */
 
is turned into
 
/*
 * <pre> public Object[] getChildren(Object parentElement) { if (parentElement
 * instanceof MovingBox) { MovingBox box = (MovingBox) parentElement; return
 * concat(box.getBoxes().toArray(), box.getBooks().toArray(), box
 * .getGames().toArray()); } return EMPTY_ARRAY; } </Pre>
 */
 
No matter which preferences are set.
Comment 1 Dani Megert CLA 2005-10-10 12:16:55 EDT
Ownership changed.
Comment 2 Olivier Thomann CLA 2007-03-13 22:21:58 EDT

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