Commit 8810b62c authored by Wendell Piez's avatar Wendell Piez

Now underlining is a no-op unless a "value" (underline style) is specified...

Now underlining is a no-op unless a "value" (underline style) is specified with it (matching behavior in Word)
parent e4ccefb9
......@@ -14,7 +14,7 @@
<!-- Output: Spammy HTML, pretty cruddy, expect to perform cleanup ... -->
<!-- For docs on WordML, see (at least):
<!-- For docs on WordML, see (at least):
......@@ -227,11 +227,8 @@
<!--<xsl:template match="w:tc">
<xsl:apply-templates select="w:p"/>
<!-- more table handling in module docx-table-extract.xsl -->
<!-- Drop in default traversal -->
<xsl:template match="w:pPr"/>
......@@ -620,11 +617,8 @@
<xsl:template mode="set-property" match="w:i[@w:val=('0','none')]">normal</xsl:template>
<xsl:template mode="set-property" match="w:i">italic</xsl:template>
<!-- will become 'i' -->
<!--<xsl:template mode="build-properties" as="element(xsw:prop)" match="w:style//w:i[not(@val=('0','none'))]">
<xsw:prop name="font-style">italic</xsw:prop>
<!-- Inoperable when no value is given -->
<xsl:template mode="build-properties" as="element(xsw:prop)?" match="w:style//w:u[empty(@w:val)]" priority="2"/>
<xsl:template mode="build-properties" as="element(xsw:prop)" match="w:style//w:u">
<xsw:prop name="text-decoration">
<xsl:apply-templates mode="set-property" select="."/>
......@@ -634,11 +628,6 @@
<xsl:template mode="set-property" match="w:u[@w:val=('0','none')]">none</xsl:template>
<xsl:template mode="set-property" match="w:u">underline</xsl:template>
<!-- will become 'u' -->
<!--<xsl:template mode="build-properties" as="element(xsw:prop)" match="w:style//w:u[not(@val=('0','none'))]">
<xsw:prop name="text-decoration">underline</xsw:prop>
<xsl:template mode="build-properties" as="element(xsw:prop)*" match="w:szCs[. = (../w:sz)]"/>
<!-- Font size for complex scripts (szCs) is just noise. -->
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