Bug 173130

Summary: Comment formatter breaks code inside <pre> tags
Product: [Eclipse Project] JDT Reporter: Markus Keller <markus.kell.r>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: VERIFIED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: benno.baumgartner, jerome_lanneluc
Version: 3.3   
Target Milestone: 3.3.1   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Markus Keller CLA 2007-02-06 13:10:59 EST
I20070206-0010

With the default formatter settings, format org.eclipse.jdt.core.dom.Statement rev. 1.28.

Text inside <pre> tags is mangled, leading to compile errors. E.g.
	 * <pre>
	 * setLeadingComment("/&#42; traditional comment &#42;/");  // correct
becomes
	 * <pre>
	 * setLeadingComment(&quot;/ * traditional comment  */&quot;); // correct
etc.

When I disable "Format Java code snippets inside 'pre' tags", the compile errors do not occur.
Comment 1 Olivier Thomann CLA 2007-02-06 13:40:52 EST
This looks like a dup of bug 109636.
This is not something new.

*** This bug has been marked as a duplicate of bug 109636 ***
Comment 2 Frederic Fusier CLA 2007-08-07 05:17:06 EDT
Verified for 3.4M1 using build I20070806-1800.
Comment 3 Eric Jodet CLA 2007-09-03 06:47:39 EDT
Verified for 3.3.1 using build M20070831-2000