Commit f7bb8d47 authored by Wendell Piez's avatar Wendell Piez

Same adjustment for bold and italic, for consistency

parent 8810b62c
......@@ -596,6 +596,7 @@
</xsl:template>
<!-- Note these are popped out only when assigned via style, not directly to spans. -->
<xsl:template mode="build-properties" as="element(xsw:prop)?" match="w:style//w:b[empty(@w:val)]" priority="2"/>
<xsl:template mode="build-properties" as="element(xsw:prop)" match="w:style//w:b">
<xsw:prop name="font-weight">
<xsl:apply-templates mode="set-property" select="."/>
......@@ -608,6 +609,7 @@
<!-- Note italics, bold and underline are dropped except when set in a style. They are picked
up through the "tucking" traversal. -->
<xsl:template mode="build-properties" as="element(xsw:prop)?" match="w:style//w:i[empty(@w:val)]" priority="2"/>
<xsl:template mode="build-properties" as="element(xsw:prop)" match="w:style//w:i">
<xsw:prop name="font-style">
<xsl:apply-templates mode="set-property" select="."/>
......
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