-
Bug
-
Resolution: Unresolved
-
Low (View bug fix roadmap)
-
None
-
7.13.0, 8.2.2, 8.3.3
-
None
-
7.13
-
1
-
Severity 3 - Minor
-
0
-
Issue Summary
Wiki markup is inconsistent in how it treats empty cells in a table.
Steps to Reproduce
- 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|
- 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 - 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 |
- 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.
Thanks for reporting this. I would rephrase it simply as:
In order to render an empty cell, at least one space must be put in between '|', the cell won't be rendered otherwise.
This is a pretty surprising behavior and I doubt this was really intended, so I see it as a bug as well. Moreover, the documentation doesn't write about empty cells at all.