Uploaded image for project: 'DokuWiki tools'
  1. DokuWiki tools
  2. DOKUWIKI-30

Headings ending with less equal signs aren't handled correctly, leading to loss of content

    XMLWordPrintable

Details

    • Bug
    • Resolution: Solved By
    • Major
    • None
    • 1.3.6
    • Syntax
    • None
    • Unknown

    Description

      In DokuWiki, two closing equal signs are enough to close a heading regardless of the level, see source (so for example ======= Headline Level 1 === is a valid headline of level 1). XWiki's DokuWiki parser however always removes as many characters as expected from the input when closing the heading, leading to weird bugs when less equal signs are used. For example, this test case passes (I have really no idea where the other content got swallowed):

      .#-----------------------------------------------------
      .input|dokuwiki/1.0
      .#-----------------------------------------------------
      ======= Headline Level 1 ===
      ==== Headline Level 3 ====
      === Headline Level 4 ===
      == Headline Level 5 == 
      .#-----------------------------------------------------
      .expect|xwiki/2.1
      .#-----------------------------------------------------
      =  Headline Level 1  =
      
      
      
      =  Headline Level 4  = 

      Attachments

        Issue Links

          Activity

            People

              MichaelHamann Michael Hamann
              MichaelHamann Michael Hamann
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: