git.iko.soy/typeable/pandoc
on master help sign in
LaTeX writer: fixed bug with empty table cells.

Resolves Issue #107. Thanks to rodja.trappe for the patch. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1492 788f1e2b-df1e-0410-8736-df70ead52e1b

commit72fd19811b06490fd45260fbf6904fa2e9c1e83e authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> dateTue 11 Nov 2008, 03:02 (18 years ago) parent5cd286a
1 file changed+1−1
Text/Pandoc/Writers/LaTeX.hs+1−1
Text/Pandoc/Writers/LaTeX.hs+1−1
@@ -224,7 +224,7 @@ blockListToLaTeX lst = mapM blockToLaTeX lst >>= return . vcat
224224tableRowToLaTeX :: [[Block]] -> State WriterState Doc
225225tableRowToLaTeX cols = mapM blockListToLaTeX cols >>=
226226 return . ($$ text "\\\\") . foldl (\row item -> row $$
227− (if isEmpty row then empty else text " & ") <> item) empty
227+ (if isEmpty row then text "" else text " & ") <> item) empty
228228
229229listItemToLaTeX :: [Block] -> State WriterState Doc
230230listItemToLaTeX lst = blockListToLaTeX lst >>= return . (text "\\item" $$) .