diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2014-02-12 22:07:52 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2014-02-12 22:10:46 +0100 |
commit | e4a448a9c7ecfbbfeaa78f6e0a268f3f2509065e (patch) | |
tree | 3c70401878c2202491df10c8cbe75cda715f2297 /swext | |
parent | sw: replace #ifdef'd operator<< (diff) | |
download | core-e4a448a9c7ecfbbfeaa78f6e0a268f3f2509065e.tar.gz core-e4a448a9c7ecfbbfeaa78f6e0a268f3f2509065e.zip |
Related: fdo#74875 Filter of "nowiki" to be improved - Export to MediaWiki
<nowiki> mustn't be called almost everytime. Now this part still need some work (rework?)
Change-Id: I9a01c1e2fb51a51e0737296117db892e3b3b9ce6
Diffstat (limited to 'swext')
-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 6992249a4dae..1b14aa19e96a 100644 --- a/swext/mediawiki/src/filter/odt2mediawiki.xsl +++ b/swext/mediawiki/src/filter/odt2mediawiki.xsl @@ -1130,12 +1130,13 @@ <choose> <when test="contains($text, '<') or contains($text, '[') or starts-with($text, '----') or starts-with($text, '=') or starts-with($text, '*') or starts-with($text, ';') or starts-with($text, '#')"> - <text><nowiki></text> <choose> <when test="contains($text, '</nowiki>')"> + <text><nowiki></text> <call-template name="render-escaped-text"> <with-param name="text" select="$text"/> </call-template> + <text></nowiki></text> </when> <otherwise> <call-template name="render-encoded-text"> @@ -1143,7 +1144,6 @@ </call-template> </otherwise> </choose> - <text></nowiki></text> </when> <otherwise> <call-template name="render-encoded-text"> |