LaTeX reader: ensure we don't have extra blank lines at ends of cells.
This can cause LaTeX errors, as they are interpreted as new paragraphs.
commit428595469e9e8848f550b758b456a7d0e8b295c1
authorJohn MacFarlane <fiddlosopher@gmail.com>
dateSun 13 May 2012, 14:59 (14 years ago)
parentbde18a4
src/Text/Pandoc/Writers/LaTeX.hs+1−1
@@ -430,7 +430,7 @@ tableRowToLaTeX header aligns widths cols = do
430430 let toCell 0 _ c = c
431431 toCell w a c = "\\parbox" <> valign <>
432432 braces (text (printf "%.2f\\columnwidth" w)) <>
433− braces (halign a <> cr <> c <> cr)
433+ braces (halign a <> cr <> chomp c <> cr)
434434 let cells = zipWith3 toCell widths aligns renderedCells
435435 return $ hcat $ intersperse (" & ") cells
436436