summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2016-12-16 14:03:58 +0100
committerJohn MacFarlane <jgm@berkeley.edu>2016-12-16 14:03:58 +0100
commitee032728830ed700e9843c3ebfc0854226a84010 (patch)
tree578b62293004129330298cf21b88337fb1033fc2 /src
parente8ebc540a3ce1e068b6fce469b4ba2e5b942881d (diff)
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')
-rw-r--r--src/Text/Pandoc/Writers/LaTeX.hs1
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)