mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-27 18:05:48 +00:00
T.P.Parsing: modify gridTableWith' for headerless tables.
If the table lacks a header, the header row should be an empty list. Previously we got a list of empty cells, which caused an empty header to be emitted instead of no header. In LaTeX/PDF output that meant we got a double top line with space between. @tarleb @despres - please let me know if this is problematic for some reason I'm not grasping.
This commit is contained in:
@@ -29,11 +29,7 @@ on Windows builds.
|
||||
[(AlignDefault,ColWidth 5.555555555555555e-2)
|
||||
,(AlignDefault,ColWidth 5.555555555555555e-2)]
|
||||
(TableHead ("",[],[])
|
||||
[Row ("",[],[])
|
||||
[Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
||||
[]
|
||||
,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
||||
[]]])
|
||||
[])
|
||||
[(TableBody ("",[],[]) (RowHeadColumns 0)
|
||||
[]
|
||||
[Row ("",[],[])
|
||||
|
||||
@@ -9,11 +9,7 @@
|
||||
[(AlignDefault,ColWidth 0.125)
|
||||
,(AlignDefault,ColWidth 0.2361111111111111)]
|
||||
(TableHead ("",[],[])
|
||||
[Row ("",[],[])
|
||||
[Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
||||
[]
|
||||
,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
||||
[]]])
|
||||
[])
|
||||
[(TableBody ("",[],[]) (RowHeadColumns 0)
|
||||
[]
|
||||
[Row ("",[],[])
|
||||
|
||||
Reference in New Issue
Block a user