Kaydet (Commit) dbc78f2e authored tarafından Julien Nabet's avatar Julien Nabet

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
üst 7330198a
......@@ -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">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment