Details
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