-
Bug
-
Resolution: Fixed
-
Minor
-
1.8
-
None
-
None
-
The standalone Windows install package. Running 1.8+ with wiki_1.8_rev2007052101
-
MOODLE_18_STABLE
-
MOODLE_18_STABLE
After playing around with the new nwiki, I've what I think to be a minor parsing bug. If I enter the following:
== New title ==
fdgfdg dfg <nowiki>[[not linked]]</nowiki>
this is [[a link]] to somewhere
=== Pictures ===
[[attach:stuart_x_smaller.jpg]]
IMPORTANT. After the "</nowiki> " tag there is a space. This makes all the difference from seeing the bug or not.
I get the attached output. The rendered HTML is:
<h2 id="a4e6577207469746c65" class="nwiki">New title</h2>
<p>
fdgfdg dfg
<br/>
[[not linked]]
</p>
<pre class="quote"/>
<p>
this is
<b>
</b>
<a href="view.php?id=253&page=a+link&gid=0&uid=0">?</a>
to somewhere
</p>
<h3 id="a5069637475726573" class="nwiki">Pictures</h3>
<p/>
<div class="img">...
If I bring the line under the </nowiki> tag up so that I have this:
== New title ==
fdgfdg dfg <nowiki>[[not linked]]</nowiki> this is [[a link]] to somewhere
I get the second screen shot where the "this is [[a link]] to somewhere" ends up in a quote block.
This is unexpected behaviour and often prevents you from mixing nowiki sections of text in with normal text.
--Stuart.