Commit 6ff51aa7 authored by Wendell Piez's avatar Wendell Piez
Browse files

Touchups including for Issue #25

parent 9d90226e
......@@ -65,14 +65,16 @@
<xsl:template match="p[not(matches(.,'\S'))]"/>
<!-- NB stripping b and strong for now. -->
<xsl:template match="I | sup | sub | a | code | em">
<xsl:apply-templates select="." mode="copy-after-all"/>
<!-- Also dropping inline markup that has only whitespace /tabs -->
<xsl:template match="i | sup | sub | a | code | em">
<xsl:apply-templates select=".[matches(.,'\S')]" mode="copy-after-all"/>
</xsl:template>
<xsl:template match="span[@class='tab']"><span>&#x9;</span></xsl:template>
<!-- Special adjustments for Editoria -->
<xsl:template priority="10" match="sup[empty(* except note)]">
<xsl:template priority="10" match="sup[empty(node() except note)]">
<xsl:apply-templates/>
</xsl:template>
......@@ -108,5 +110,6 @@
<!-- Bye-bye @class, bye-bye @style! -->
<xsl:template match="@class | @style" priority="2"/>
</xsl:stylesheet>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment