]> granicus.if.org Git - docbook-dsssl/commitdiff
add extra line before SH heads only in non-TTY output
authorMichael Smith <xmldoc@users.sourceforge.net>
Sat, 1 Mar 2008 10:19:51 +0000 (10:19 +0000)
committerMichael Smith <xmldoc@users.sourceforge.net>
Sat, 1 Mar 2008 10:19:51 +0000 (10:19 +0000)
xsl/manpages/other.xsl

index 0f0e356657eb3bd6ea5d8b753ab2cd08449d4333..5eecae031dd6343746d95010ca70c261838f5bf5 100644 (file)
@@ -725,10 +725,14 @@ db:manvolnum
     <xsl:text>.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&#10;</xsl:text>
     <xsl:text>.\" SH - level-one heading that works better for non-TTY output&#10;</xsl:text>
     <xsl:text>.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&#10;</xsl:text>
-    <xsl:text>.de1 SH
-.\" put an extra blank line of space above the head
-.sp 1
-.sp \\n[PD]u
+    <xsl:text>.de1 SH&#10;</xsl:text>
+    <xsl:text>.\" put an extra blank line of space above the head in non-TTY output&#10;</xsl:text>
+    <xsl:call-template name="roff-if-start">
+      <xsl:with-param name="condition">t</xsl:with-param>
+    </xsl:call-template>
+    <xsl:text>.sp 1&#10;</xsl:text>
+    <xsl:call-template name="roff-if-end"/>
+    <xsl:text>.sp \\n[PD]u
 .nr an-level 1
 .set-an-margin
 .nr an-prevailing-indent \\n[IN]