Skip to content

Commit

Permalink
fix issue where numeric spacing values were dropped
Browse files Browse the repository at this point in the history
  • Loading branch information
mkraetke committed Oct 12, 2023
1 parent bb467ce commit 57206f5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion xsl/modules/prop-mapping/map-props.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -1548,7 +1548,11 @@

<xsl:template match="docx2hub:attribute[@name = 'css:font-variant-numeric']
[following-sibling::docx2hub:attribute[@name = 'css:font-variant-numeric']]" mode="docx2hub:props2atts">
<xsl:attribute name="{@name}" select="(parent::*/docx2hub:attribute[@name = 'css:font-variant-numeric'][. ne 'normal'], 'normal')[1]"/>
<xsl:variable name="font-variant-numeric-values" as="element(docx2hub:attribute)+"
select="parent::*/docx2hub:attribute[@name = 'css:font-variant-numeric']"/>
<xsl:attribute name="{@name}" select="if(every $val in $font-variant-numeric-values satisfies $val eq 'numeric')
then 'normal'
else $font-variant-numeric-values[. ne 'normal']"/>
</xsl:template>

<xsl:template match="docx2hub:attribute[@name = 'css:font-variant-numeric']
Expand Down

0 comments on commit 57206f5

Please sign in to comment.