mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-26 02:06:32 +00:00
Lua utils: fix handling of table headers in from_simple_table
Passing an empty list of header cells now results in an empty table header. Fixes: #7369
This commit is contained in:
@@ -146,7 +146,7 @@ from_simple_table (SimpleTable capt aligns widths head' body) = do
|
||||
nullAttr
|
||||
(Caption Nothing [Plain capt])
|
||||
(zipWith (\a w -> (a, toColWidth w)) aligns widths)
|
||||
(TableHead nullAttr [blockListToRow head'])
|
||||
(TableHead nullAttr [blockListToRow head' | not (null head') ])
|
||||
[TableBody nullAttr 0 [] $ map blockListToRow body]
|
||||
(TableFoot nullAttr [])
|
||||
return (NumResults 1)
|
||||
|
||||
Reference in New Issue
Block a user