<code> nested in <pre> is now ignored (no grey bg)

This commit is contained in:
skyanth
2017-03-01 14:46:58 +01:00
parent c786d17cdf
commit a2accb8622

View File

@@ -128,11 +128,15 @@
<xsl:template match="code">
<xsl:choose>
<xsl:when test="parent::title">
<xsl:when test="ancestor::title">
<fo:inline xsl:use-attribute-sets="code-title">
<xsl:apply-templates/>
</fo:inline>
</xsl:when>
<xsl:when test="ancestor::pre">
<!-- <code> in <pre> is just <pre> -->
<xsl:apply-templates/>
</xsl:when>
<xsl:otherwise>
<fo:inline xsl:use-attribute-sets="code">
<xsl:apply-templates/>