From: Michael S. <xm...@us...> - 2004-10-25 22:05:29
|
Update of /cvsroot/docbook/xsl/html In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5711 Modified Files: synop.xsl Log Message: Feature Request #1008804 (command in cmdsynopsis is not indented) 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... Index: synop.xsl =================================================================== RCS file: /cvsroot/docbook/xsl/html/synop.xsl,v retrieving revision 1.13 retrieving revision 1.14 diff -u -U2 -r1.13 -r1.14 --- synop.xsl 4 Oct 2002 10:56:58 -0000 1.13 +++ synop.xsl 25 Oct 2004 22:05:18 -0000 1.14 @@ -23,10 +23,14 @@ <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> |