diff options
author | John MacFarlane <jgm@berkeley.edu> | 2016-12-16 14:03:58 +0100 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2016-12-16 14:03:58 +0100 |
commit | ee032728830ed700e9843c3ebfc0854226a84010 (patch) | |
tree | 578b62293004129330298cf21b88337fb1033fc2 /src/Text/Pandoc/Writers | |
parent | e8ebc540a3ce1e068b6fce469b4ba2e5b942881d (diff) | |
download | pandoc-ee032728830ed700e9843c3ebfc0854226a84010.tar.gz |
LaTeX writer: allow tables with empty cells to count as "plain."
This addresses a problem of too-wide tables when empty cells
are used.
Thanks to Joost Kremers for reporting the issue.
Diffstat (limited to 'src/Text/Pandoc/Writers')
-rw-r--r-- | src/Text/Pandoc/Writers/LaTeX.hs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Writers/LaTeX.hs b/src/Text/Pandoc/Writers/LaTeX.hs index 88be106fd..81109e111 100644 --- a/src/Text/Pandoc/Writers/LaTeX.hs +++ b/src/Text/Pandoc/Writers/LaTeX.hs @@ -640,6 +640,7 @@ tableRowToLaTeX header aligns widths cols = do let scaleFactor = 0.97 ** fromIntegral (length aligns) let isSimple [Plain _] = True isSimple [Para _] = True + isSimple [] = True isSimple _ = False -- simple tables have to have simple cells: let widths' = if not (all isSimple cols) |