]> granicus.if.org Git - docbook-dsssl/commitdiff
put a line of vertical space after all verbatim output that has
authorMichael Smith <xmldoc@users.sourceforge.net>
Tue, 4 Mar 2008 04:28:11 +0000 (04:28 +0000)
committerMichael Smith <xmldoc@users.sourceforge.net>
Tue, 4 Mar 2008 04:28:11 +0000 (04:28 +0000)
sibling content following it (not just if that sibling content is
a text node)

xsl/manpages/block.xsl

index d2a68d3e876e94e5a2f8177dcddd93356ecd9ffd..9086ddb7f05b67746cce54c854375b89baea0641 100644 (file)
     <!-- * end indented section -->
     <xsl:text>.RE&#10;</xsl:text> 
   </xsl:if>
-  <!-- * if first following sibling node of this verbatim -->
-  <!-- * environment is a text node, output a line of space before it -->
-  <xsl:if test="following-sibling::node()[1][name(.) = '']">
+  <!-- * if this verbatim environment has a following sibling node, -->
+  <!-- * output a line of space to separate the content -->
+  <xsl:if test="following-sibling::node()">
     <xsl:text>.sp&#10;</xsl:text>
   </xsl:if>
 </xsl:template>