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

NWiki Headings not parsed correclty

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 4.3.3
    • Wiki (2.x)
    • MOODLE_403_STABLE

      A wiki configured as NWiki has an issue when a heading 

      = Sample =
      

      has a space character after the trailing "=". If there is a space, trying to "edit" only this section by clicking on the "edit" button next to the respective heading results in an "Unknown section" error.

      If there is no trailing space, editing works fine.

      The trailing white-space after the formatting should however not affect the editing - it is neither part of the heading nor should a trailing white space be stored anyway.

       

      How to reproduce:

      // [space] is a marker for the space character, ASCII 0x20, since it would be
      // invisible otherwise
      // Create the following NWiki wiki page
       
      = Sample Heading =
      ...
      = Another heading =[space]
      ...
      = Yet another =
       
      // Now try to click "edit" near "Sample Heading", it works. 
      // Next try this on "Another heading" - it won't
      // For "Yet another" it works again
      

      I was able to reproduce this issue on several Moodle versions, including the most recent.

      (BTW: What a strange "anti-spam measure" by Jira to make me vote for a random issue prior to filing one, Bugzilla doesn't bug me with such nonsense, which does not prevent anything but users from filing issues)

            Unassigned Unassigned
            TobiasEgg Tobias
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.