diff options
Diffstat (limited to 'swext')
-rw-r--r-- | swext/mediawiki/src/filter/odt2mediawiki.xsl | 21 |
1 files changed, 6 insertions, 15 deletions
diff --git a/swext/mediawiki/src/filter/odt2mediawiki.xsl b/swext/mediawiki/src/filter/odt2mediawiki.xsl index 1b14aa19e96a..64474b334ea2 100644 --- a/swext/mediawiki/src/filter/odt2mediawiki.xsl +++ b/swext/mediawiki/src/filter/odt2mediawiki.xsl @@ -1129,21 +1129,12 @@ <param name="text"/> <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, '#')"> - <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"> - <with-param name="text" select="$text"/> - </call-template> - </otherwise> - </choose> + <when test="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> + <call-template name="render-encoded-text"> + <with-param name="text" select="$text"/> + </call-template> + <text></nowiki></text> </when> <otherwise> <call-template name="render-encoded-text"> |