diff options
author | Alina Banerjee <alinab@users.noreply.github.com> | 2019-08-01 16:01:39 -0500 |
---|---|---|
committer | Alec Theriault <alec.theriault@gmail.com> | 2020-03-20 20:24:17 -0400 |
commit | dec888641006eb685a642ec489b198c61a5736dc (patch) | |
tree | d9634c3b0e1f7b656ebb572db003e7fc12590359 /haddock-library/fixtures/examples/table-cell-strip-whitespaces.parsed | |
parent | 053c9add568dad4264f4629bff0de9b10d9316e1 (diff) |
Update parsing to strip whitespace from table cells (#1074)
* Update parsing to strip leading & trailing whitespace from table cells
* Update fixture data to disallow whitespaces at both ends in table cells
* Add test case for whitespaces stripped from both ends of table cells
* Update table reference test data for html tests
Diffstat (limited to 'haddock-library/fixtures/examples/table-cell-strip-whitespaces.parsed')
-rw-r--r-- | haddock-library/fixtures/examples/table-cell-strip-whitespaces.parsed | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/haddock-library/fixtures/examples/table-cell-strip-whitespaces.parsed b/haddock-library/fixtures/examples/table-cell-strip-whitespaces.parsed new file mode 100644 index 00000000..19002369 --- /dev/null +++ b/haddock-library/fixtures/examples/table-cell-strip-whitespaces.parsed @@ -0,0 +1,29 @@ +DocTable + Table + {tableBodyRows = [TableRow + [TableCell + {tableCellColspan = 1, + tableCellContents = DocString "row", + tableCellRowspan = 1}, + TableCell + {tableCellColspan = 1, + tableCellContents = DocIdentifier "test", + tableCellRowspan = 1}, + TableCell + {tableCellColspan = 1, + tableCellContents = DocString + "'test table cell with .. whitepspace '", + tableCellRowspan = 1}]], + tableHeaderRows = [TableRow + [TableCell + {tableCellColspan = 1, + tableCellContents = DocString "C1", + tableCellRowspan = 1}, + TableCell + {tableCellColspan = 1, + tableCellContents = DocString "C2", + tableCellRowspan = 1}, + TableCell + {tableCellColspan = 1, + tableCellContents = DocString "C3", + tableCellRowspan = 1}]]} |