如果我为一个方法生成javadoc,方法的参数/异常就会不必要地被包装成新行,像这样:
页面上还有大量水平空间。使用Oracle javadoc.exe 8u60. 我如何在不手动编辑HTML文件的情况下防止这些不必要的换行?下面是截图中显示部分的源代码:
上面的源代码被提取、压缩并经过 HTML 格式化工具处理,以便更易阅读。这里是完整的原始文件链接: https://gist.github.com/RAnders00/cdb94887150e339f36fa。
![enter image description here](https://istack.dev59.com/UBrds.webp)
<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>
上面的源代码被提取、压缩并经过 HTML 格式化工具处理,以便更易阅读。这里是完整的原始文件链接: https://gist.github.com/RAnders00/cdb94887150e339f36fa。