Skip to content

Commit

Permalink
Update map-props.xsl
Browse files Browse the repository at this point in the history
fix empty css:font-variant-numeric value when all values are normal
  • Loading branch information
siegfriedzoetzsche committed Oct 12, 2023
1 parent e2dedb8 commit bb467ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xsl/modules/prop-mapping/map-props.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -1548,7 +1548,7 @@

<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']"/>
<xsl:attribute name="{@name}" select="(parent::*/docx2hub:attribute[@name = 'css:font-variant-numeric'][. ne 'normal'], 'normal')[1]"/>
</xsl:template>

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

0 comments on commit bb467ce

Please sign in to comment.