Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 376815

Summary: [formatter] Javadoc formatter inserts line break inside closing HTML tag
Product: [Eclipse Project] JDT Reporter: Nick Radov <nradov>
Component: CoreAssignee: Mateusz Matela <mateusz.matela>
Status: VERIFIED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: dusisarath, manoj.palat, mateusz.matela
Version: 3.8   
Target Milestone: 4.6 M7   
Hardware: PC   
OS: Windows 7   
See Also: https://bugs.eclipse.org/bugs/show_bug.cgi?id=306419
https://bugs.eclipse.org/bugs/show_bug.cgi?id=348338
Whiteboard:
Attachments:
Description Flags
Sample Java source code file to reproduce the bug none

Description Nick Radov CLA 2012-04-15 02:11:48 EDT
Build Identifier: 20120216-1857

If a closing HTML tag such has "</b>" inside Javadoc content occurs at the very end of a line the formatter will insert a line break and '*' character after the '<' character. That invalidates the tag and screws up the HTML rendering.

Reproducible: Always

Steps to Reproduce:
Set the Formatter profile to "Eclipse [built-in]". Format the attached test file. Notice the line break is inserted in the wrong place in line 11. The line break should be before the '<' character.
Comment 1 Nick Radov CLA 2012-04-15 02:12:55 EDT
Created attachment 214020 [details]
Sample Java source code file to reproduce the bug
Comment 2 Mateusz Matela CLA 2016-04-16 13:43:49 EDT
This problem no longer occurs after the formatter redesign.

*** This bug has been marked as a duplicate of bug 303519 ***
Comment 3 Dusi Sarath Chandra CLA 2016-04-27 05:19:52 EDT
Verified using Eclipse Version: Neon (4.6)
Build id: I20160425-1300