]> granicus.if.org Git - docbook-dsssl/commitdiff
renamed from title-preamble to pinch.together and replaced "sp -1"
authorMichael Smith <xmldoc@users.sourceforge.net>
Mon, 3 Mar 2008 04:12:38 +0000 (04:12 +0000)
committerMichael Smith <xmldoc@users.sourceforge.net>
Mon, 3 Mar 2008 04:12:38 +0000 (04:12 +0000)
between synopsis fragments with call to pinch.together instead

xsl/manpages/synop.xsl
xsl/manpages/table.xsl
xsl/manpages/utility.xsl

index 3393a4e66408c9358619d03f34ef8119e6bf9d7b..9131956b87e4d7c72569148ef8951a9b2bc55790 100644 (file)
     <xsl:apply-templates select="." mode="synopfragment.number"/>
   </xsl:variable>
   <xsl:text>&#10;</xsl:text>
-  <!-- * If we have a group of Synopfragments, we only want to output a -->
-  <!-- * line of space before the first; so when we find a Synopfragment -->
-  <!-- * whose first preceding sibling is another Synopfragment, we back -->
-  <!-- * up one line vertically to negate the line of vertical space -->
-  <!-- * that's added by the .HP macro -->
+  If we have a group of Synopfragments, we only want to output a
+  line of space before the first; so when we find a Synopfragment
+  whose first preceding sibling is another Synopfragment, we back
+  use the pinch-together template to close up the line of space
+  that would otherwise be generated by the .HP macro
   <xsl:if test="preceding-sibling::*[1][self::synopfragment]">
-    <xsl:text>.sp -1&#10;</xsl:text>
+    <xsl:call-template name="pinch.together"/>
   </xsl:if>
   <xsl:text>.HP </xsl:text>
   <!-- * For each Synopfragment, make a hanging paragraph, with the -->
index 56cbb5ccf1602270b0484f9a60361c0213b19765..74f94235d10e83b40e4561587886bc50e3017448 100644 (file)
       <!-- *   Output table title                                           -->
       <!-- * ============================================================== -->
       <xsl:if test="$title != '' or parent::td">
-        <xsl:call-template name="title-preamble"/>
+        <xsl:call-template name="pinch.together"/>
         <xsl:text>.</xsl:text>
         <xsl:value-of select="$tbl.font.title"/>
         <xsl:text> </xsl:text>
index 4b515523f578b0b6bea39ca3a80564943769cced..239e8d78d1c5dcfd3c4e61886e624c791faa1934 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">
-    <xsl:call-template name="title-preamble"/>
+    <xsl:call-template name="pinch.together"/>
     <xsl:text>.ps +1&#10;</xsl:text>
     <xsl:call-template name="make.bold.title"/>
   </xsl:template>
 
-  <xsl:template name="title-preamble">
+  <xsl:template name="pinch.together">
     <!-- * arcane roff code to suppress line spacing after headings -->
     <xsl:text>.sp&#10;</xsl:text>
     <xsl:text>.it 1 an-trap&#10;</xsl:text>