]> granicus.if.org Git - docbook-dsssl/commitdiff
only put a line of space after a verbatim if it's followed by a
authorMichael Smith <xmldoc@users.sourceforge.net>
Tue, 4 Mar 2008 10:11:38 +0000 (10:11 +0000)
committerMichael Smith <xmldoc@users.sourceforge.net>
Tue, 4 Mar 2008 10:11:38 +0000 (10:11 +0000)
text node or a paragraph

xsl/manpages/block.xsl

index 9086ddb7f05b67746cce54c854375b89baea0641..55e38afe7ac0ebaf3d00f11746c222d2f478d8c8 100644 (file)
   </xsl:if>
   <!-- * 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:if test="following-sibling::text()
+    |following-sibling::para
+    |following-sibling::simpara">
     <xsl:text>.sp&#10;</xsl:text>
   </xsl:if>
 </xsl:template>