created title-preamble template for suppressing line spacing after
authorMichael Smith <xmldoc@users.sourceforge.net>
Mon, 3 Mar 2008 03:26:48 +0000 (03:26 +0000)
committerMichael Smith <xmldoc@users.sourceforge.net>
Mon, 3 Mar 2008 03:26:48 +0000 (03:26 +0000)
headings

xsl/manpages/utility.xsl

index 026749b611e7e62b02c77b4c25d27b35a127ed1a..4b515523f578b0b6bea39ca3a80564943769cced 100644 (file)
   <!-- * The nested-section-title template is called for refsect3, and any -->
   <!-- * refsection nested more than 2 levels deep. -->
   <xsl:template name="nested-section-title">
-    <!-- * The next few lines are some arcane roff code to control line -->
-    <!-- * spacing after headings. -->
+    <xsl:call-template name="title-preamble"/>
+    <xsl:text>.ps +1&#10;</xsl:text>
+    <xsl:call-template name="make.bold.title"/>
+  </xsl:template>
+
+  <xsl:template name="title-preamble">
+    <!-- * arcane roff code to suppress line spacing after headings -->
     <xsl:text>.sp&#10;</xsl:text>
     <xsl:text>.it 1 an-trap&#10;</xsl:text>
     <xsl:text>.nr an-no-space-flag 1&#10;</xsl:text>
     <xsl:text>.nr an-break-flag 1&#10;</xsl:text>
     <xsl:text>.br&#10;</xsl:text>
-    <xsl:text>.ps +1&#10;</xsl:text>
-    <xsl:call-template name="make.bold.title"/>
   </xsl:template>
 
   <xsl:template name="make.bold.title">