Skip to content

Commit

Permalink
extra normalisation
Browse files Browse the repository at this point in the history
  • Loading branch information
proycon committed Jan 27, 2021
1 parent 9944c87 commit 3854d7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion foliatools/folia2html.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,7 @@
<em><xsl:apply-templates /></em>
</xsl:when>
<xsl:otherwise>
<span><xsl:attribute name="class">style_<xsl:choose><xsl:when test="@class"><xsl:value-of select="@class" /></xsl:when><xsl:otherwise>none</xsl:otherwise></xsl:choose><xsl:for-each select="folia:feat"><xsl:text> style_</xsl:text><xsl:value-of select="@subset" />_<xsl:value-of select="translate(normalize-space(@class), ' .{}[]#+=\@/,', '')" /></xsl:for-each></xsl:attribute><xsl:apply-templates /></span>
<span><xsl:attribute name="class">style_<xsl:choose><xsl:when test="@class"><xsl:value-of select="translate(normalize-space(@class), ' .{}[]#+=\@/,', '')" /></xsl:when><xsl:otherwise>none</xsl:otherwise></xsl:choose><xsl:for-each select="folia:feat"><xsl:text> style_</xsl:text><xsl:value-of select="@subset" />_<xsl:value-of select="translate(normalize-space(@class), ' .{}[]#+=\@/,', '')" /></xsl:for-each></xsl:attribute><xsl:apply-templates /></span>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
Expand Down

0 comments on commit 3854d7b

Please sign in to comment.