summaryrefslogtreecommitdiff
path: root/docs/usage.xsl
diff options
context:
space:
mode:
authorSimon MacMullen <simon@lshift.net>2010-03-29 12:02:39 +0100
committerSimon MacMullen <simon@lshift.net>2010-03-29 12:02:39 +0100
commitb53eacfaccd14cd60fb06722b41a85c6cba36c62 (patch)
treecad78334fe5f8480f38c173fffe08802fb51f7e7 /docs/usage.xsl
parent433f39d115823ef85219231a94348910e536eb10 (diff)
downloadrabbitmq-server-git-b53eacfaccd14cd60fb06722b41a85c6cba36c62.tar.gz
Reinstate whitespace and [] in usage message broken in 600668c4da36.
Diffstat (limited to 'docs/usage.xsl')
-rw-r--r--docs/usage.xsl4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/usage.xsl b/docs/usage.xsl
index 841b2a8461..04beebca7e 100644
--- a/docs/usage.xsl
+++ b/docs/usage.xsl
@@ -12,7 +12,7 @@
encoding="UTF-8"
indent="no"/>
<xsl:strip-space elements="*"/>
-<xsl:preserve-space elements="term" />
+<xsl:preserve-space elements="cmdsynopsis arg" />
<xsl:template match="/">
<!-- Pull out cmdsynopsis to show the command usage line. -->%% Generated, do not edit!
@@ -74,7 +74,7 @@ usage() -> io:format(%QUOTE%Usage:
<!-- Don't show anything else in command usage -->
<xsl:template match="text()" mode="command-usage"/>
-<xsl:template match="option">[<xsl:apply-templates/>]</xsl:template>
+<xsl:template match="arg[@choice='opt']">[<xsl:apply-templates/>]</xsl:template>
<xsl:template match="replaceable">&lt;<xsl:value-of select="."/>&gt;</xsl:template>
</xsl:stylesheet>