提交 14ac815b 编写于 作者: J Jesse Glick

Display command.longDescription in a preformatted block.

This makes the overall appearance of the page match what you would actually see from the console.
(Using: java -jar jenkins-cli.jar -s <URL> help <COMMAND>)
For some commands, such as SupportCommand (in support-core), this is critical,
since the expectation is that longDescription is a multiline fixed-width block.
上级 a59cf9f3
......@@ -33,11 +33,11 @@ THE SOFTWARE.
</h1>
<j:set var="commandArgs" value="${command.name}${command.singleLineSummary}"/>
<st:include page="example.jelly"/>
<p>${command.longDescription}</p>
<j:set var="usage" value="${command.usage}"/>
<j:if test="${!empty usage}">
<pre>${command.usage}</pre>
</j:if>
<pre>
<j:out value="${h.escape(command.longDescription)}"/>
<j:set var="usage" value="${command.usage}"/>
<j:if test="${!empty usage}"><br/>${command.usage}</j:if>
</pre>
</l:main-panel>
</l:layout>
</j:jelly>
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册