mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 23:00:56 +01:00
When merging styles, handle <b>, <i> in addition to <strong>,<em>
This commit is contained in:
parent
625a125e83
commit
3874ec6084
@ -86,13 +86,13 @@ Breakers
|
||||
</xsl:template>
|
||||
-->
|
||||
|
||||
<xsl:template name="apply-styles" match="w:r[descendant::strong|descendant::em|descendant::u|descendant::span]">
|
||||
<xsl:template name="apply-styles" match="w:r[descendant::strong|descendant::b|descendant::i|descendant::em|descendant::u|descendant::span]">
|
||||
<xsl:for-each select="node()|@*[not(w:rPr)]">
|
||||
<xsl:choose>
|
||||
<xsl:when test="descendant::strong|descendant::em|descendant::u|descendant::span" >
|
||||
<xsl:when test="descendant::strong|descendant::b|descendant::i|descendant::em|descendant::u|descendant::span" >
|
||||
<xsl:for-each select="node()|@*">
|
||||
<xsl:choose>
|
||||
<xsl:when test="descendant-or-self::strong|descendant-or-self::em|descendant-or-self::u|descendant-or-self::span" >
|
||||
<xsl:when test="descendant-or-self::strong|descendant-or-self::b|descendant-or-self::i|descendant-or-self::em|descendant-or-self::u|descendant-or-self::span" >
|
||||
<w:r>
|
||||
<w:rPr>
|
||||
<xsl:apply-templates select=".|child::*" />
|
||||
|
@ -211,7 +211,7 @@
|
||||
</xsl:template>
|
||||
|
||||
<!-- Simple, use known styles -->
|
||||
<xsl:template match="strong">
|
||||
<xsl:template match="strong|b">
|
||||
<text:span text:style-name="Tbold"><xsl:apply-templates/></text:span>
|
||||
</xsl:template>
|
||||
<xsl:template match="em|i">
|
||||
|
@ -87,13 +87,13 @@ Breakers
|
||||
</xsl:template>
|
||||
-->
|
||||
|
||||
<xsl:template match="w:r[descendant::strong|descendant::em|descendant::u|descendant::span]" name="apply-styles">
|
||||
<xsl:template match="w:r[descendant::strong|descendant::b|descendant::em|descendant::i|descendant::u|descendant::span]" name="apply-styles">
|
||||
<xsl:for-each select="node()|@*[not(w:rPr)]">
|
||||
<xsl:choose>
|
||||
<xsl:when test="descendant::strong|descendant::em|descendant::u|descendant::span" >
|
||||
<xsl:when test="descendant::strong|descendant::b|descendant::em|descendant::i|descendant::u|descendant::span" >
|
||||
<xsl:for-each select="node()|@*">
|
||||
<xsl:choose>
|
||||
<xsl:when test="descendant-or-self::strong|descendant-or-self::em|descendant-or-self::u|descendant-or-self::span" >
|
||||
<xsl:when test="descendant-or-self::strong|descendant-or-self::b|descendant-or-self::em|descendant-or-self::i|descendant-or-self::u|descendant-or-self::span" >
|
||||
<w:r>
|
||||
<w:rPr>
|
||||
<xsl:apply-templates select=".|child::*" />
|
||||
|
Loading…
Reference in New Issue
Block a user