summaryrefslogtreecommitdiff
path: root/swext
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2014-02-22 09:06:05 +0100
committerJulien Nabet <serval2412@yahoo.fr>2014-02-22 09:15:31 +0100
commitdbc78f2e41c22e0b25598c349e4496a5e0c53164 (patch)
treed120f3bde6e4a3f1fc27b8ce809d7801d88ec845 /swext
parent7330198ad5e7143672d5322ee85ce2944c7c7e1b (diff)
Resolves: fdo#75308 Asterisk at the beginning of Paragraph without "Nowiki"
The fix of fdo#74875 brings a huge regression since nowiki must be used With this patch, fdo#74875 is still ok hopefully. Change-Id: Ic6ed34630b40b09ab4f63166cbb1985b6313d168
Diffstat (limited to 'swext')
-rw-r--r--swext/mediawiki/src/filter/odt2mediawiki.xsl21
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, '&lt;') 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, '&lt;/nowiki&gt;')">
- <text>&lt;nowiki&gt;</text>
- <call-template name="render-escaped-text">
- <with-param name="text" select="$text"/>
- </call-template>
- <text>&lt;/nowiki&gt;</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>&lt;nowiki&gt;</text>
+ <call-template name="render-encoded-text">
+ <with-param name="text" select="$text"/>
+ </call-template>
+ <text>&lt;/nowiki&gt;</text>
</when>
<otherwise>
<call-template name="render-encoded-text">