]> granicus.if.org Git - docbook-dsssl/commitdiff
Better fix for bug #3545150 by putting the title with the step number
authorBob Stayton <bobs@sagehill.net>
Sat, 3 Nov 2012 04:50:51 +0000 (04:50 +0000)
committerBob Stayton <bobs@sagehill.net>
Sat, 3 Nov 2012 04:50:51 +0000 (04:50 +0000)
rather than before it.

xsl/manpages/lists.xsl

index 7e84cb4cfc057546ee0d209ab7be6a1dfc1d84d6..6f748c8df9e027ede924aa187f5d562834e34711 100644 (file)
   <xsl:text>.RE&#10;</xsl:text>
 </xsl:template>
 
+<xsl:template match="orderedlist/listitem/title|
+                     procedure/step/title">
+  <xsl:call-template name="bold">
+    <xsl:with-param name="node" select="."/>
+    <xsl:with-param name="context" select=".."/>
+  </xsl:call-template>
+  <xsl:text>&#10;</xsl:text>
+  <xsl:text>.PP&#10;</xsl:text>
+</xsl:template>
+
 <xsl:template match="orderedlist/listitem|procedure/step">
-  <xsl:if test="title">
-    <xsl:text>.PP&#10;</xsl:text>
-    <xsl:call-template name="bold">
-      <xsl:with-param name="node" select="title"/>
-      <xsl:with-param name="context" select="."/>
-    </xsl:call-template>
-  </xsl:if>
   <xsl:text>&#10;</xsl:text>
   <xsl:text>.sp</xsl:text>
   <xsl:text>&#10;</xsl:text>