Skip to content

Commit

Permalink
common xslt updated for mathml rendering fix, metanorma/mn2pdf#221
Browse files Browse the repository at this point in the history
  • Loading branch information
Intelligent2013 committed Jul 3, 2023
1 parent cc9b830 commit 433842d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions xslt_src/common.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -11285,10 +11285,10 @@
<xsl:copy>
<xsl:apply-templates select="@*" mode="mathml"/>
<xsl:if test="not(@lspace)">
<xsl:attribute name="lspace">0.4em</xsl:attribute>
<xsl:attribute name="lspace">0.2em</xsl:attribute>
</xsl:if>
<xsl:if test="not(@rspace)">
<xsl:attribute name="rspace">0.4em</xsl:attribute>
<xsl:if test="not(@rspace) and not(following-sibling::*[1][self::mathml:mo and normalize-space(text()) = '|'])">
<xsl:attribute name="rspace">0.2em</xsl:attribute>
</xsl:if>
<xsl:apply-templates mode="mathml"/>
</xsl:copy>
Expand Down

0 comments on commit 433842d

Please sign in to comment.