Uploaded image for project: 'XWiki Rendering'
  1. XWiki Rendering
  2. XRENDERING-733

Newlines in groups in tables accumulate

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 15.10.2
    • Rendering in the platform
    • Wikimodel
    • None
    • Unit
    • Unknown
    • N/A
    • N/A

    Description

      When a table contains an (empty) group block in every cell that contains a single newline, these newlines accumulate in the sense that the parser sees two newlines in the second cell, three in the fourth etc.. The following test case demonstrates this, the expect part of the first block fails, the event/1.0 syntax demonstrates what the parser parses:

      .#-------------------------------------------------------------------
      .inputexpect|xwiki/2.1
      .# Verify newline handling in table cells.
      .#-------------------------------------------------------------------
      |(((
      
      )))|(((
      
      )))|(((
      
      )))|(((
      
      )))|(((
      
      )))|(((
      
      )))|(((
      
      )))
      .#-----------------------------------------------------
      .expect|event/1.0
      .#-----------------------------------------------------
      beginDocument
      beginTable
      beginTableRow
      beginTableCell
      beginGroup
      onEmptyLines [2]
      endGroup
      endTableCell
      beginTableCell
      beginGroup
      onEmptyLines [2]
      endGroup
      endTableCell
      beginTableCell
      beginGroup
      onEmptyLines [3]
      endGroup
      endTableCell
      beginTableCell
      beginGroup
      onEmptyLines [4]
      endGroup
      endTableCell
      beginTableCell
      beginGroup
      onEmptyLines [5]
      endGroup
      endTableCell
      beginTableCell
      beginGroup
      onEmptyLines [6]
      endGroup
      endTableCell
      beginTableCell
      beginGroup
      onEmptyLines [7]
      endGroup
      endTableCell
      endTableRow
      endTable
      endDocument
      

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: