diff options
-rw-r--r-- | swext/mediawiki/src/filter/odt2mediawiki.xsl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/swext/mediawiki/src/filter/odt2mediawiki.xsl b/swext/mediawiki/src/filter/odt2mediawiki.xsl index bf186ef6723a..8812be4d282d 100644 --- a/swext/mediawiki/src/filter/odt2mediawiki.xsl +++ b/swext/mediawiki/src/filter/odt2mediawiki.xsl @@ -1438,7 +1438,7 @@ <value-of select="'}'"/> --> - <if test="$superscript and not($superscript-left)"> + <if test="$superscript and not($superscript-left) and not(boolean(ancestor::text:note))"> <text><sup></text> </if> <if test="$subscript and not($subscript-left)"> @@ -1476,7 +1476,7 @@ <if test="$subscript and not($subscript-right)"> <text></sub></text> </if> - <if test="$superscript and not($superscript-right)"> + <if test="$superscript and not($superscript-right) and not(boolean(ancestor::text:note))"> <text></sup></text> </if> |