This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Formatting option set default to format comments | ||
---|---|---|---|
Product: | editor | Reporter: | Chiana |
Component: | Formatting & Indentation | Assignee: | Dusan Balek <dbalek> |
Status: | RESOLVED WONTFIX | ||
Severity: | normal | CC: | markiewb, ralphbenjamin |
Priority: | P3 | ||
Version: | 7.3 | ||
Hardware: | PC | ||
OS: | All | ||
See Also: | http://netbeans.org/bugzilla/show_bug.cgi?id=218825 | ||
Issue Type: | ENHANCEMENT | Exception Reporter: |
Description
Chiana
2012-09-24 11:11:11 UTC
I do not agree, the problem described in #218825 is from using simple comments as Javadoc. Javadoc is written in HTML and should be limited by a line-width of 80 characters[1]. When formatting "shuffles" all your comment's text around, you can clearly see something is wrong with the written Javadoc. A simple; undo, fix the javadoc and again reformat should fix the problem. [1] - http://www.oracle.com/technetwork/java/javase/documentation/index-137868.html#format Well, if you look again you can clearly see that the reformat actually *made* lines longer than 80 chars. (In reply to comment #2) > Well, if you look again you can clearly see that the reformat actually *made* > lines longer than 80 chars. Yes, but this looks like intended, I can not see the red line for the right margin. Probable becase the editor margin is at 140 chars. The actual problem is that the formatter messed up my nice looking comment when I reformatted the code, and that is not good. (In reply to comment #4) > The actual problem is that the formatter messed up my nice looking comment when > I reformatted the code, and that is not good. For the record: when a javadoc is rendered to HTML, it will be "flattened" basically in the same way as after the format. So for everybody reading the javadoc not the source, the result won't be nice. <pre></pre> should be used when preformated text is present. This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue. Thanks for your cooperation, NetBeans IDE 8.2 Release Boss |