Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-70048

Wiki markup is inconsistent in how it treats empty cells in a table.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Low
    • None
    • 7.13.0, 8.2.2, 8.3.3
    • Rich Text Editor
    • None

    Description

      Issue Summary

      Wiki markup is inconsistent in how it treats empty cells in a table.

      Steps to Reproduce

      1. Try creating a table where the empty cell is there, but there is no space within this empty cell.
        For Example:
        |1|ABC|Yes|Yes|Yes|
        |2||No|No|Yes|
        |3|XYZ|Yes|||
        |4||No|Yes|No|
        
      2. When it tries to render, wiki markup considers this empty cell as no cell. Hence the result is like this:
        1 ABC Yes Yes Yes
        2 No No Yes
        3 XYZ Yes
        4 No Yes No
      3. Now create a table where empty cells are there, and there's space in the empty cells. For example:
        | 1 | ABC | Yes | Yes | Yes | 
        | 2 | | No | No | Yes | 
        | 3 | XYZ | Yes | | | 
        | 4 | | No | Yes | No | 
        
      4. In this case, wiki markup translates it as a cell with no content/empty cell. Hence it gets rendered like this:
        1 ABC Yes Yes Yes
        2   No No Yes
        3 XYZ Yes    
        4   No Yes No

      Expected Results

      The table should be rendered correctly.

      Actual Results

      The table is not rendered correctly.

      Notes

      In the first example, it does not require space to consider a cell as a cell. See |Sunday|, it gets rendered as a cell even though there is no space there. Now, when there is || which doesn't have space either, but it doesn't take it as a cell. Both of them have no space.
      Able to replicate this behavior on 7.13.0, 8.2.2

      Workaround

      The workaround is to have space in the empty cells so that the table is rendered correctly.

      Attachments

        Activity

          People

            Unassigned Unassigned
            sshukla@atlassian.com Soumya Shukla (Inactive)
            Votes:
            3 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: