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.
[ BUILD # : 201305262300 ] [ JDK VERSION : 1.7.0_21 ] * Configure the Java-Formatter: ** Right margin = 0 ** Comments: Wrap text at right margin =true * Format a method with documented parameters in javadoc For example: <code> /** * @param foo this is my foo * @param bar that is my bar */ private void blaBla(String foo, String bar) { } </code> ACTUAL: the parameter comment are aligned to the left - this looks very ugly and IMHO this is unwanted behavior/bug - see screenshot EXPECTED: ??? (when right margin==0, then no format of parameters in javadoc should take place - what do you think?)
Created attachment 134975 [details] Shows the reproduction and the wrong result
Created attachment 134976 [details] Shows the reproduction and the wrong result
What is the purpose of setting the right margin to 0? What would be the expected result of setting the right margin to 1, 2, ...?
(In reply to comment #3) > What is the purpose of setting the right margin to 0? What would be the > expected result of setting the right margin to 1, 2, ...? @Dusan: Good catch! Setting the margin to 0 disables the right margin IMHO. (Or is there another way to disable the right margin?) I rather like that the option "Comments: Wrap text at right margin" won't be applied while formatting when the margin is set to 0. Does this make sense?
Sorry, it still doesn't make much sense to me :-( You say: Setting the margin to 0 disables the right margin - OK. But I don't understand why do you have "Comments: Wrap text at right margin = true" then? But anyway, fixed in jet-main. http://hg.netbeans.org/jet-main/rev/6c79a9807377
Integrated into 'main-golden', will be available in build *201305302301* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/6c79a9807377 User: Dusan Balek <dbalek@netbeans.org> Log: Issue #230346: alignment of parameters in JavaDoc is wrong, when right margin = 0 - fixed.
Verified in 201307011244