]> granicus.if.org Git - docbook-dsssl/commitdiff
for a para or simpara that is the first child of a callout,
authorMichael Smith <xmldoc@users.sourceforge.net>
Wed, 5 Mar 2008 10:19:29 +0000 (10:19 +0000)
committerMichael Smith <xmldoc@users.sourceforge.net>
Wed, 5 Mar 2008 10:19:29 +0000 (10:19 +0000)
suppress the .sp or .PP that would normally be output (because in
those cases, the output goes into a table cell, and the .sp or .PP
markup causes a spurious linebreak before it when displayed

xsl/manpages/block.xsl

index 55e38afe7ac0ebaf3d00f11746c222d2f478d8c8..7ff54fa77a581cf17759f6d99fa9ca1dcae5b6d0 100644 (file)
@@ -67,7 +67,8 @@
     <xsl:when test="ancestor::footnote or
                     ancestor::annotation or
                     ancestor::authorblurb or
-                    ancestor::personblurb">
+                    ancestor::personblurb or
+                    ancestor::callout">
       <xsl:if test="preceding-sibling::*[not(name() ='')]">
         <xsl:text>.sp</xsl:text>
         <xsl:text>&#10;</xsl:text>
 </xsl:template>
 
 <xsl:template match="simpara">
-  <xsl:if test="not(ancestor::authorblurb) and
-                not(ancestor::personblurb)">
+  <xsl:if test="not(ancestor::authorblurb)
+    and not(ancestor::personblurb)
+    and not(ancestor::callout)"
+    >
     <xsl:text>.sp&#10;</xsl:text>
   </xsl:if>
   <xsl:variable name="content">