Bug 173130 - Comment formatter breaks code inside <pre> tags
Summary: Comment formatter breaks code inside <pre> tags
Status: VERIFIED DUPLICATE of bug 109636
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.3   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.3.1   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-06 13:10 EST by Markus Keller CLA
Modified: 2007-09-03 06:51 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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