Bug 52855 - [formatting] Javadoc formatting: bat wrapping with [code] or [pre] tags, extra whitespace added for other html tags
Summary: [formatting] Javadoc formatting: bat wrapping with [code] or [pre] tags, extr...
Status: RESOLVED DUPLICATE of bug 49686
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-23 14:03 EST by Fabrizio Giustina CLA
Modified: 2004-02-24 06:27 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Fabrizio Giustina CLA 2004-02-23 14:03:53 EST
The following sample shows 3 problems in javadoc formatting:

public class WrappingTest
{

    /**
     * Javadocs wrapping is wrong when you have a [code] tag just at the end of 
the line like in this situation <code>wrap here</code>.
     */
    public static final String CONSTANT = "somevalue";

    /**
     * Javadocs wrapping is good when you have a [strong] tag just at the end 
of the line like in this situation
     * <strong>wrap here </strong>. (but it always add an addictional 
whitespace before /strong)
     */
    public static final String CONSTANT2 = "somevalue";

    /**
     * Javadocs formatting adds an extra empty line for a [pre] tag like in 
this situation
     * 
     * <pre>wrap here</pre>.
     */
    public static final String CONSTANT3 = "somevalue";

}

1) a <code> tag at the end of the line is not wrapped (totally put on a new 
line) like for other tags. Line length exceed maximum length set (120 chars).

2) wrapping is good for other tags, but an extra whitespace is added before the 
closing tag (<strong>wrap here</strong>. becomes <strong>wrap here </strong>. )

3) an extra newline is appended before a <pre> tag. I think there are no 
configuration options for this like for the "add an empty line before 
parameters", so it should not be added.


Full code formatter preferences used here have been already uploaded for bug 
report 52854
Comment 1 Dani Megert CLA 2004-02-24 06:26:18 EST
Note:
- please file one bug per bug report
- include build id
- use bug <nr> when referring to a bug - this will include a link in the comment

*** This bug has been marked as a duplicate of 49686 ***
Comment 2 Dani Megert CLA 2004-02-24 06:27:23 EST
Sorry: build id was in summary. Correct place is comment.

Build id: 3.0-M7