Commit f730422b authored by Wendell Piez's avatar Wendell Piez

Refining logic to promote properties from inline to paragraph to avoid failure...

Refining logic to promote properties from inline to paragraph to avoid failure when a tab is present
parent e8d553a1
......@@ -81,8 +81,8 @@ Note the following mappings:
<xsl:template name="override-styles">
<!-- Under certain conditions, descends tree to collect CSS style property assignments
returning them as attributes (captured on a proxy). -->
<xsl:if test="count(*) eq 1 and normalize-space(.) = normalize-space(*[1])">
<xsl:for-each select="*">
<xsl:if test="count(span) eq 1 and normalize-space(.) = normalize-space(*[1])">
<xsl:for-each select="span">
<xsl:apply-templates select=". | @style" mode="as-attributes"/>
<!-- descend recursively -->
<xsl:call-template name="override-styles"/>
......
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