If I generate javadoc for a method the method parameters/exceptions unnecessarily get wrapped into a new line, like this:
There is plenty of horizontal space left on the page. Using Oracle javadoc.exe 8u60.
How can I prevent these unnecessary line breaks without having to manually edit the HTML files?
This is the source code of the part shown in the screenshot:
<ul class="blockList">
<li class="blockList">
<a name="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="getRootWord--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getRootWord</h4>
<pre>@NotNull
public <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> getRootWord()</pre>
</li>
</ul>
<a name="setRootWord-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setRootWord</h4>
<pre>public void setRootWord(@NotNull
<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> rootWord)</pre>
</li>
</ul>
<a name="getAdjectiveDeclension--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getAdjectiveDeclension</h4>
<pre>@NotNull
public <a href="../../../../com/kayon/core/adjective/AdjectiveDeclension.html" title="interface in com.kayon.core.adjective">AdjectiveDeclension</a> getAdjectiveDeclension()
throws <a href="../../../../com/kayon/core/NoDeclensionException.html" title="class in com.kayon.core">NoDeclensionException</a></pre>
<dl>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../com/kayon/core/NoDeclensionException.html" title="class in com.kayon.core">NoDeclensionException</a></code></dd>
</dl>
</li>
</ul>
<a name="setAdjectiveDeclension-com.kayon.core.adjective.AdjectiveDeclension-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setAdjectiveDeclension</h4>
<pre>public void setAdjectiveDeclension(@Nullable
<a href="../../../../com/kayon/core/adjective/AdjectiveDeclension.html" title="interface in com.kayon.core.adjective">AdjectiveDeclension</a> adjectiveDeclension)</pre>
</li>
</ul>
</li>
</ul>
The source code above is extracted, condensed and processed by a HTML formatter for easier reading, here is the very raw complete file.
You can customise the format of your javadoc by writing a custom doclet.
Please check this section in the javadoc generator documentation:
Javadoc Doclets
You can customize the content and format of the javadoc command output with doclets. The javadoc command has a default built-in doclet, called the standard doclet, that generates HTML-formatted API documentation. You can modify or make a subclass of the standard doclet, or write your own doclet to generate HTML, XML, MIF, RTF or whatever output format you want.
When a custom doclet is not specified with the -doclet option, the javadoc command uses the default standard doclet. The javadoc command has several options that are available regardless of which doclet is being used. The standard doclet adds a supplementary set of command-line options. See Options.
http://docs.oracle.com/javase/8/docs/technotes/tools/windows/javadoc.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With