</xsl:template>
<xsl:template match="simpara">
- <xsl:if test="not(ancestor::authorblurb)
- and not(ancestor::personblurb)
- and not(ancestor::callout)"
- >
- <xsl:text>.sp </xsl:text>
- </xsl:if>
+ <xsl:choose>
+ <xsl:when test="ancestor::footnote or
+ ancestor::annotation or
+ ancestor::authorblurb or
+ ancestor::personblurb or
+ ancestor::callout">
+ <xsl:if test="preceding-sibling::*[not(name() ='')]">
+ <xsl:text>.sp</xsl:text>
+ <xsl:text> </xsl:text>
+ <xsl:text>.RS 4n</xsl:text>
+ <xsl:text> </xsl:text>
+ </xsl:if>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:text>.sp</xsl:text>
+ <xsl:text> </xsl:text>
+ </xsl:otherwise>
+ </xsl:choose>
<xsl:variable name="content">
<xsl:apply-templates/>
</xsl:variable>
<!-- * do some further checking on it, so we can emit warnings -->
<!-- * about potential problems -->
<xsl:for-each select="node()">
- <xsl:if test="local-name() != 'para' and local-name() !=''">
+ <xsl:if test="local-name() != 'para' and
+ local-name() != 'simpara' and
+ local-name() !=''">
<!-- * for each node we find as a child of a footnote or -->
<!-- * annotation, if it's not a para or a text node, emit a -->
<!-- * warning... because in manpages output, we can't render -->