Added some CSS magic to enable the requested effect; this change:
- makes all cmdsynopses monospaced
- creates CSS floats that make a hanging indent (aka tabular
presentation) for cmdysnopsis; command name appears first
column, everything else (arg/group/synopfragment) goes to
second column
Probably should also add parameters to toggle behavior on/off...
<!-- ==================================================================== -->
<xsl:template match="cmdsynopsis">
- <div class="{name(.)}">
- <p>
- <xsl:call-template name="anchor"/>
- <xsl:apply-templates/>
- </p>
+ <div class="{name(.)}" style="font-family: monospace; clear: both; margin-top: 1em;">
+ <xsl:call-template name="anchor"/>
+ <span style="float: left; text-align: left;">
+ <xsl:apply-templates select="command"/>
+ </span>
+ <span style="float: left; text-align: left; padding-left: .5em">
+ <xsl:apply-templates select="command/following-sibling::node()"/>
+ </span>
</div>
+ <br style="clear: both;"/>
</xsl:template>
<xsl:template match="cmdsynopsis/command">