Fixed layout bug in ConTeXt and LaTeX writers.
This was a regression introduced by the recent internal links changes.
This commit is contained in:
parent
3f981022a6
commit
3e526918f8
2 changed files with 4 additions and 4 deletions
|
@ -70,7 +70,7 @@ pandocToConTeXt options (Pandoc (Meta title authors date) blocks) = do
|
|||
then return ""
|
||||
else liftM (render colwidth) $ inlineListToConTeXt date
|
||||
body <- mapM (elementToConTeXt options) $ hierarchicalize blocks
|
||||
let main = (render colwidth . cat) body
|
||||
let main = (render colwidth . vcat) body
|
||||
let context = writerVariables options ++
|
||||
[ ("toc", if writerTableOfContents options then "yes" else "")
|
||||
, ("body", main)
|
||||
|
@ -119,7 +119,7 @@ elementToConTeXt _ (Blk block) = blockToConTeXt block
|
|||
elementToConTeXt opts (Sec level _ id' title' elements) = do
|
||||
header' <- sectionHeader id' level title'
|
||||
innerContents <- mapM (elementToConTeXt opts) elements
|
||||
return $ cat (header' : innerContents)
|
||||
return $ vcat (header' : innerContents)
|
||||
|
||||
-- | Convert Pandoc block element to ConTeXt.
|
||||
blockToConTeXt :: Block
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue