summaryrefslogtreecommitdiff
path: root/swext
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2017-06-11 21:57:14 +0200
committerAndras Timar <andras.timar@collabora.com>2017-06-21 12:36:17 +0200
commit1e32cd7ed7e7aab6f8ec4e2f14e59dc47c633dd7 (patch)
treeb1e5c63435a3314e9550d08cef414dac264fd6b7 /swext
parent384246b9c3ba2ef588ac11d3d801046168dfd407 (diff)
tdf#80671: mediawiki, no superscript tags allowed in footnotes
Change-Id: I54c2cc0fc6b2a9c631fc83f59c2204dd5e374d2c Reviewed-on: https://gerrit.libreoffice.org/38666 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Julien Nabet <serval2412@yahoo.fr> (cherry picked from commit 6a24160894e91c007d4a2f8ef193eed670909ea5) Reviewed-on: https://gerrit.libreoffice.org/38669 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> (cherry picked from commit 1684ef2146dce6c132e3472b38b932d99f22b41c)
Diffstat (limited to 'swext')
-rw-r--r--swext/mediawiki/src/filter/odt2mediawiki.xsl4
1 files changed, 2 insertions, 2 deletions
diff --git a/swext/mediawiki/src/filter/odt2mediawiki.xsl b/swext/mediawiki/src/filter/odt2mediawiki.xsl
index 4aada97afd75..25fa68fddca2 100644
--- a/swext/mediawiki/src/filter/odt2mediawiki.xsl
+++ b/swext/mediawiki/src/filter/odt2mediawiki.xsl
@@ -1431,7 +1431,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>&lt;sup&gt;</text>
</if>
<if test="$subscript and not($subscript-left)">
@@ -1469,7 +1469,7 @@
<if test="$subscript and not($subscript-right)">
<text>&lt;/sub&gt;</text>
</if>
- <if test="$superscript and not($superscript-right)">
+ <if test="$superscript and not($superscript-right) and not(boolean(ancestor::text:note))">
<text>&lt;/sup&gt;</text>
</if>