You should use HTML tags in your comments. Javadoc only slightly processes the comments, namely, just inline tags like {@link}. Anything else is inserted into the result generated HTML as is.
So, when you need to make a new line, just use <br> or
HTML tags.
Leonid Rudy
http://www.docflex.com
Hi,
There is no way to have the javadocs to automatically insert a html br for you? Seems like that'd be a great option to have. If not, I will write my own parser to add brs I guess....adding them to thousands of methods in hundreds of files is something I don't want to do...
Thanks!
There is no way to have javadoc add the line breaks and paragraphs for you automatically. The browser will break the line when necessary, but if you want the lines broke at a specific location, then you need to specify where you want the new line, otherwise it will use the browser's default newline.
If you want a new line every where you created a new line, you could attempt to use the HTML preformatting tags:
<pre>
</pre>
These may not work as expected. You could just try it on one method and see what you get.