]> granicus.if.org Git - docbook-dsssl/commitdiff
only indent verbatim environments in TTY output, not in non-TTY/PS
authorMichael Smith <xmldoc@users.sourceforge.net>
Sat, 29 Mar 2008 01:37:08 +0000 (01:37 +0000)
committerMichael Smith <xmldoc@users.sourceforge.net>
Sat, 29 Mar 2008 01:37:08 +0000 (01:37 +0000)
xsl/manpages/block.xsl

index 8f246b37330bb77944800ffbfb86a5e38c877844..9e25bb1d35aa3a87ed2c0b619baa8c01308454cf 100644 (file)
   </xsl:choose>
   <xsl:if test="$indent = 'Yes'">
     <!-- * start indented section -->
+    <xsl:call-template name="roff-if-start"/>
+    <!-- * only indent in TTY output, not in non-TTY/PS -->
     <xsl:text>.RS</xsl:text> 
     <xsl:if test="not($man.indent.width = '')">
       <xsl:text> </xsl:text>
       <xsl:value-of select="$man.indent.width"/>
     </xsl:if>
     <xsl:text>&#10;</xsl:text>
+    <xsl:call-template name="roff-if-end"/>
   </xsl:if>
   <xsl:choose>
     <xsl:when test="self::funcsynopsisinfo">
   </xsl:choose>
   <xsl:if test="$indent = 'Yes'">
     <!-- * end indented section -->
+    <xsl:call-template name="roff-if-start"/>
     <xsl:text>.RE&#10;</xsl:text> 
+    <xsl:call-template name="roff-if-end"/>
   </xsl:if>
   <!-- * if this verbatim environment has a following sibling node, -->
   <!-- * output a line of space to separate the content -->