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
This commit is contained in:
parent
5cd286aa45
commit
72fd19811b
1 changed files with 1 additions and 1 deletions
|
@ -224,7 +224,7 @@ blockListToLaTeX lst = mapM blockToLaTeX lst >>= return . vcat
|
|||
tableRowToLaTeX :: [[Block]] -> State WriterState Doc
|
||||
tableRowToLaTeX cols = mapM blockListToLaTeX cols >>=
|
||||
return . ($$ text "\\\\") . foldl (\row item -> row $$
|
||||
(if isEmpty row then empty else text " & ") <> item) empty
|
||||
(if isEmpty row then text "" else text " & ") <> item) empty
|
||||
|
||||
listItemToLaTeX :: [Block] -> State WriterState Doc
|
||||
listItemToLaTeX lst = blockListToLaTeX lst >>= return . (text "\\item" $$) .
|
||||
|
|
Loading…
Add table
Reference in a new issue