]> granicus.if.org Git - docbook-dsssl/commitdiff
Itemizedlist/Orderedlist with Title, fixed handling of.
authorMichael Smith <xmldoc@users.sourceforge.net>
Fri, 10 Mar 2006 10:16:21 +0000 (10:16 +0000)
committerMichael Smith <xmldoc@users.sourceforge.net>
Fri, 10 Mar 2006 10:16:21 +0000 (10:16 +0000)
Also handling of paragraph text following a list.
Problem:: No output for Title element of Itemized/Orderedlist.
Cause:: Missing logic for matching Title instances in lists. Fix::
Added handling for Title.
Also fixed problem that caused text following a list within the
same paragraph to be indented more than expected.
Closes #1447042 and #1447072.

xsl/manpages/lists.xsl

index d13cbc36e2d1a34a4f9422bab4bb35ea2a7a15e2..5d0d6204a789282d78fbe644b14eedbd4941d047 100644 (file)
 </xsl:template>
 
 <xsl:template match="itemizedlist|orderedlist|procedure">
+  <xsl:if test="title">
+    <xsl:text>.PP&#10;</xsl:text>
+    <xsl:apply-templates mode="bold" select="title"/>
+    <xsl:text>&#10;</xsl:text>
+  </xsl:if>
   <xsl:text>.TP 3&#10;</xsl:text>
   <xsl:apply-templates/>
+  <xsl:if test="following-sibling::node()">
+  <xsl:text>.sp&#10;</xsl:text>
+  <xsl:text>.RE&#10;</xsl:text>
+  </xsl:if>
 </xsl:template>
 
 <xsl:template match="itemizedlist[ancestor::listitem or ancestor::step  or ancestor::glossdef]|
                     orderedlist[ancestor::listitem or ancestor::step or ancestor::glossdef]|
                     procedure[ancestor::listitem or ancestor::step or ancestor::glossdef]">
   <xsl:text>.RS&#10;</xsl:text>
+  <xsl:if test="title">
+    <xsl:text>.PP&#10;</xsl:text>
+    <xsl:apply-templates mode="bold" select="title"/>
+    <xsl:text>&#10;</xsl:text>
+  </xsl:if>
   <xsl:text>.TP 3&#10;</xsl:text>
   <xsl:apply-templates/>
   <xsl:text>.RE&#10;</xsl:text>