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.
reproducible with 070226_3, not reproducible in jse8.1 One line documentation has no word wrap (javadoc has and in jse8.1 all looks good). steps: 1. create uml project 2. add class 3. add documentation "The UML Modeling project provides UML modeling features to the <a href="http://wiki.netbeans.org/wiki/view/NetBeansUserFAQ#section-NetBeansUserFAQ-UML">NetBeans IDE</a>. UML modeling allows analysts and designers to design applications using a standard modeling language. Developers are then able to generate source code from the UML model and update the model from changes made in their source code. " 4. generate report 5. open class page in report documentation is shown in one line without word wrapping.
I copied and pasted the text in the quotes and then removed anchors "StartFragment" and "EndFragment" that were created in the Documentation window when the text was pasted. Then, the generated report has the text wrapped.
Did you remove extra newlines added by issuezilla? (see summary, documentation should be in one line)
OK, in order to address all the format issues we have to stop supporting mixed use of two editors. Feedbacks seem to suggest users tend to close documentation window to save space and invoke doc editor from property panel without knowing it's a different one that expects raw html source for formatting. See issue 84368, issue 89654 issue 92129 issue 89650. The suggested solution is to provide custom html editor for documentation property, as seen in documentation window. Raw html source derived from the presentation in the visual editor will be persisted and later retrieved for display in the IDE and web report without additional format processing. The visual html editor will be enhanced to allow user to view and edit ( not recommended however ) the html source. It's targeted for the next release as the current code freeze has passed.
removed <PRE> tag in html report documentation section after the fix to issue 89654 and various formatting issues.
verified in build 20070807-b2306. The line is still a single line without wrapping in model report. See attached screenshot showing the <pre> tags when the pointer stops at the documentation in the properties window. The attached generated html file from model report also still shows the following line with "<pre>" tags. <pre>The UML Modeling project provides UML modeling features to the <a href="<a href="http://wiki.netbeans.org/wiki/view/NetBeansUserFAQ#section-NetBeansUserFAQ-UML">http://wiki.netbeans.org/wiki/view/NetBeansUserFAQ#section-NetBeansUserFAQ-UML</a>">NetBeans IDE</a>. UML modeling allows analysts and designers to design applications using a standard modeling language. Developers are then able to generate source code from the UML model and update the model from changes made in their source code.</pre></P><HR>
Created attachment 46243 [details] screenshot of documentation in one long line
Created attachment 46244 [details] model report html file
The original issue is about adding <PRE> tag to documentation text for report that results in no word wrapping in html display, it was corrected so that report takes documentation text (which is guaranteed in html format) without further processing. In your case, the <PRE> tag is in the documentation raw html source, as seen in documentation property tooltip and in html editor (no wrapping), it will be rendered in report the same way (WYSIWYG). To test the fix, you just need to enter documentation a long line without linebreak and generate report to see how it gets rendered.
I don't get it. Any text that I entered in the documentation window, I see the "<pre>" tags in the documentation properties. Is this what the correct behaviour should be by automatically adding the "<pre>" tags to any text typed in the documentation window?
I see, you must have copied and pasted the pre-formatted text (with <PRE>) to the documentation text pane once, and got into this situation where <PRE> sticks and all texts entered get enclosed in the tag. The current editor does not allow user to choose paragraph format (to specify 'body text', 'preformat', 'paragraph' etc), once the format is set through copy & paste, it stays for the rest of editing. The workaround is to copy & paste another text without <PRE> to the editor pane to reset the tag. Ideally, the documentation editor should function like Thunderbird email composer, but currently, there's no plan for further enhancement.
Ok, I got it now. Looks like that's a separate issue unrelated to this one and this one is now fixed. The other issue is that I just copied the text from this issue desc and pasted into the documentation window for a class and automatically get the "<pre>" tags. Even after deleting the pasted text, the "<pre>" tags are still hanging there as seen from the Properties window.