Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 376815 - [formatter] Javadoc formatter inserts line break inside closing HTML tag
Summary: [formatter] Javadoc formatter inserts line break inside closing HTML tag
Status: VERIFIED DUPLICATE of bug 303519
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.8   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 4.6 M7   Edit
Assignee: Mateusz Matela CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-15 02:11 EDT by Nick Radov CLA
Modified: 2016-04-27 06:28 EDT (History)
3 users (show)

See Also:


Attachments
Sample Java source code file to reproduce the bug (687 bytes, text/plain)
2012-04-15 02:12 EDT, Nick Radov CLA
no flags Details

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