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

Lists and table syntax is recognized in the middle of a paragraph/list item

    XMLWordPrintable

Details

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

    Description

      While fixing DOKUWIKI-18, I noticed that the parser doesn't pay attention if a syntax is at the start of a line or not. This means that something like _ (recognized as smiley in DokuWiki) is recognized as a table cell when it appears, e.g., at the start of a list item as in the syntax guide. Similarly, a list is recognized when two spaces are followed by * at the beginning of another syntax:

       .#-----------------------------------------------------
      .input|dokuwiki/1.0
      .#-----------------------------------------------------
      This is //  * not a list//.
      
        * ^_^ %%  ^_^  %%
      .#-----------------------------------------------------
      .expect|event/1.0
      .#-----------------------------------------------------
      beginDocument
      beginParagraph
      onWord [This]
      onSpace
      onWord [is]
      onSpace
      beginList [BULLETED]
      beginListItem
      beginFormat [ITALIC]
      onWord [not]
      onSpace
      onWord [a]
      onSpace
      onWord [list]
      endFormat [ITALIC]
      onSpecialSymbol [.]
      endListItem
      beginListItem
      beginTable
      beginTableRow
      beginTableHeadCell
      onSpecialSymbol [_]
      endTableHeadCell
      beginTableHeadCell [[align]=[centre]]
      onWord [%%]
      endTableHeadCell [[align]=[centre]]
      beginTableHeadCell
      onSpecialSymbol [_]
      endTableHeadCell
      beginTableHeadCell [[align]=[right]]
      onSpecialSymbol [%]
      endTableHeadCell [[align]=[right]]
      endTableRow
      endTable
      endListItem
      endList [BULLETED]
      endParagraph
      endDocument
      .#-----------------------------------------------------
      .expect|xwiki/2.1
      .#-----------------------------------------------------
      This is 
      
      * //not a list//.
      * 
      
      |=_|=(% align="centre" %)%%|=_|=(% align="right" %)%

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: