diff options
| author | John MacFarlane <[email protected]> | 2022-02-11 09:42:24 -0800 |
|---|---|---|
| committer | John MacFarlane <[email protected]> | 2022-02-11 09:42:24 -0800 |
| commit | 899feec4d341cf464e9fc6d72e40477ac7fbac15 (patch) | |
| tree | 1f08c7c68ffee0a85b3ce676cf9c1463c8570789 /test | |
| parent | e8c1c6adb1b6a7c30c1f7e197832ccf6895ddce7 (diff) | |
RST reader: fix treatment of headerless simple tables.
We were producing a header with blank cells rather than no
header. Closes #7902.
Diffstat (limited to 'test')
| -rw-r--r-- | test/rst-reader.native | 10 | ||||
| -rw-r--r-- | test/tables-rstsubset.native | 11 |
2 files changed, 2 insertions, 19 deletions
diff --git a/test/rst-reader.native b/test/rst-reader.native index d3e7f6caa..f5c60cd4f 100644 --- a/test/rst-reader.native +++ b/test/rst-reader.native @@ -1124,15 +1124,7 @@ Pandoc , ( AlignDefault , ColWidthDefault ) , ( AlignDefault , ColWidthDefault ) ] - (TableHead - ( "" , [] , [] ) - [ Row - ( "" , [] , [] ) - [ Cell ( "" , [] , [] ) AlignDefault (RowSpan 1) (ColSpan 1) [] - , Cell ( "" , [] , [] ) AlignDefault (RowSpan 1) (ColSpan 1) [] - , Cell ( "" , [] , [] ) AlignDefault (RowSpan 1) (ColSpan 1) [] - ] - ]) + (TableHead ( "" , [] , [] ) []) [ TableBody ( "" , [] , [] ) (RowHeadColumns 0) diff --git a/test/tables-rstsubset.native b/test/tables-rstsubset.native index ba3fb211a..d9fd4342a 100644 --- a/test/tables-rstsubset.native +++ b/test/tables-rstsubset.native @@ -755,16 +755,7 @@ , ( AlignDefault , ColWidthDefault ) , ( AlignDefault , ColWidthDefault ) ] - (TableHead - ( "" , [] , [] ) - [ Row - ( "" , [] , [] ) - [ Cell ( "" , [] , [] ) AlignDefault (RowSpan 1) (ColSpan 1) [] - , Cell ( "" , [] , [] ) AlignDefault (RowSpan 1) (ColSpan 1) [] - , Cell ( "" , [] , [] ) AlignDefault (RowSpan 1) (ColSpan 1) [] - , Cell ( "" , [] , [] ) AlignDefault (RowSpan 1) (ColSpan 1) [] - ] - ]) + (TableHead ( "" , [] , [] ) []) [ TableBody ( "" , [] , [] ) (RowHeadColumns 0) |
