Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-9913

Spurious quote box appears after <nowiki> tag

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.8
    • Fix Version/s: 1.8
    • Component/s: None
    • Labels:
      None
    • Environment:
      The standalone Windows install package. Running 1.8+ with wiki_1.8_rev2007052101
    • Affected Branches:
      MOODLE_18_STABLE
    • Fixed Branches:
      MOODLE_18_STABLE

      Description

      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.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                31/Mar/07