diff options
author | John MacFarlane <fiddlosopher@gmail.com> | 2011-12-30 16:28:44 -0800 |
---|---|---|
committer | John MacFarlane <fiddlosopher@gmail.com> | 2011-12-30 16:28:44 -0800 |
commit | 3e526918f810ba2e1baab39aa04cc140fc8716a1 (patch) | |
tree | 5b52144ab53642052400313e366ad4124769cd4f /src/Text/Pandoc/Writers/LaTeX.hs | |
parent | 3f981022a6e67af3f34c2f4c641ccb8a0f1f3fca (diff) | |
download | pandoc-3e526918f810ba2e1baab39aa04cc140fc8716a1.tar.gz |
Fixed layout bug in ConTeXt and LaTeX writers.
This was a regression introduced by the recent internal
links changes.
Diffstat (limited to 'src/Text/Pandoc/Writers/LaTeX.hs')
-rw-r--r-- | src/Text/Pandoc/Writers/LaTeX.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Text/Pandoc/Writers/LaTeX.hs b/src/Text/Pandoc/Writers/LaTeX.hs index cfa4a5dfd..da0389cf7 100644 --- a/src/Text/Pandoc/Writers/LaTeX.hs +++ b/src/Text/Pandoc/Writers/LaTeX.hs @@ -117,7 +117,7 @@ pandocToLaTeX options (Pandoc (Meta title authors date) blocks) = do else return blocks' body <- mapM (elementToLaTeX options) $ hierarchicalize blocks'' biblioTitle <- liftM (render colwidth) $ inlineListToLaTeX lastHeader - let main = render colwidth $ cat body + let main = render colwidth $ vcat body st <- get let biblioFiles = intercalate "," $ map dropExtension $ writerBiblioFiles options citecontext = case writerCiteMethod options of @@ -166,7 +166,7 @@ elementToLaTeX _ (Blk block) = blockToLaTeX block elementToLaTeX opts (Sec level _ id' title' elements) = do header' <- sectionHeader id' level title' innerContents <- mapM (elementToLaTeX opts) elements - return $ cat (header' : innerContents) + return $ vcat (header' : innerContents) -- escape things as needed for LaTeX stringToLaTeX :: Bool -> String -> String |