| Summary: | [formatter] Valid 1.5 code is not formatted inside <pre> tag | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Frederic Fusier <frederic_fusier> | ||||
| Component: | Core | Assignee: | Frederic Fusier <frederic_fusier> | ||||
| Status: | VERIFIED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | Olivier_Thomann, satyam.kandula, srikanth_sankaran | ||||
| Version: | 3.5 | ||||||
| Target Milestone: | 3.5.1 | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Whiteboard: | |||||||
| Bug Depends on: | 196308 | ||||||
| Bug Blocks: | |||||||
| Attachments: |
|
||||||
|
Description
Frederic Fusier
Although is set the compliance in my project to 1.6, it appears that the source level used to format the snippet inside the <pre> tag is the default one (i.e. 1.3), hence fails to parse this 1.5 code... Created attachment 139436 [details]
Proposed patch
If the source level of the formatter options is over 1.3, then use it while formatting the code snippet inside <pre> HTML tags of Javadoc comments...
Fix looks simple and safe. Tagging for 3.5.1. Released for 3.6M1 in HEAD stream. Released for 3.5.1 in R3_5_maintenance stream. Verified for 3.6M1 using build I20090802-2000 Verified for 3.5.1 using build M20090826-1100 Verified. |