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.
commitee032728830ed700e9843c3ebfc0854226a84010
authorJohn MacFarlane <jgm@berkeley.edu>
dateFri 16 Dec 2016, 14:03 (10 years ago)
parente8ebc54
src/Text/Pandoc/Writers/LaTeX.hs+1
@@ -640,6 +640,7 @@ tableRowToLaTeX header aligns widths cols = do
640640 let scaleFactor = 0.97 ** fromIntegral (length aligns)
641641 let isSimple [Plain _] = True
642642 isSimple [Para _] = True
643+ isSimple [] = True
643644 isSimple _ = False
644645 -- simple tables have to have simple cells:
645646 let widths' = if not (all isSimple cols)