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.
This commit is contained in:
John MacFarlane 2016-12-16 14:03:58 +01:00
parent e8ebc540a3
commit ee03272883

View file

@ -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)