From: Michael Smith <xmldoc@users.sourceforge.net>
Date: Tue, 4 Mar 2008 04:28:11 +0000 (+0000)
Subject: put a line of vertical space after all verbatim output that has
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a67ff5eb39b3cb2f0a2c90f0289f5a0aeee3c8b2;p=docbook-dsssl

put a line of vertical space after all verbatim output that has
sibling content following it (not just if that sibling content is
a text node)
---

diff --git a/xsl/manpages/block.xsl b/xsl/manpages/block.xsl
index d2a68d3e8..9086ddb7f 100644
--- a/xsl/manpages/block.xsl
+++ b/xsl/manpages/block.xsl
@@ -254,9 +254,9 @@
     <!-- * 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>