]> granicus.if.org Git - docbook-dsssl/commitdiff
If multiple Refnamediv within same Refentry, put a ".br" line
authorMichael Smith <xmldoc@users.sourceforge.net>
Fri, 10 Mar 2006 13:32:02 +0000 (13:32 +0000)
committerMichael Smith <xmldoc@users.sourceforge.net>
Fri, 10 Mar 2006 13:32:02 +0000 (13:32 +0000)
break between them, instead of a blank line. This closes up
spacing between them and also makes it clear that the break is
intentional, not a stray.

xsl/manpages/refentry.xsl

index a70a70e99b4837dea470cbb8251685bc85a74457..53e0e6b0278eaaf786e2c3e3be7252f04bd29d9a 100644 (file)
   <xsl:template match="refnamediv">
     <xsl:choose>
       <xsl:when test="preceding-sibling::refnamediv">
-        <!-- * no title on secondary refnamedivs! -->
+        <!-- * No title on secondary refnamedivs! -->
+        <!-- * Just put a single line break instead -->
+        <xsl:text>.br&#10;</xsl:text>
       </xsl:when>
       <xsl:otherwise>
         <xsl:call-template name="mark.subheading"/>
         <xsl:text>.SH "</xsl:text>
         <xsl:apply-templates select="." mode="title.markup"/>
         <xsl:text>"</xsl:text>
+        <xsl:text>&#10;</xsl:text>
       </xsl:otherwise>
     </xsl:choose>
-    <xsl:text>&#10;</xsl:text>
     <xsl:call-template name="mark.subheading"/>
     <!-- * if we have multiple Refname instances, separate the names -->
     <!-- * with commas -->