diff options
author | John MacFarlane <fiddlosopher@gmail.com> | 2013-04-08 09:51:10 -0700 |
---|---|---|
committer | John MacFarlane <fiddlosopher@gmail.com> | 2013-04-08 09:51:10 -0700 |
commit | ff6394171be99c369e1755cc585151a78f086509 (patch) | |
tree | 46b76484c90f3007e29cc93bfcb986ce2973353d /src/Text/Pandoc/Writers | |
parent | 333deac26b616850141d61a53bdf30fc3fdb3771 (diff) | |
download | pandoc-ff6394171be99c369e1755cc585151a78f086509.tar.gz |
Markdown writer: Put multiple authors on separate lines in titleblock.
Also, don't wrap long author entries, as new lines get treated
as new authors.
Diffstat (limited to 'src/Text/Pandoc/Writers')
-rw-r--r-- | src/Text/Pandoc/Writers/Markdown.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Writers/Markdown.hs b/src/Text/Pandoc/Writers/Markdown.hs index f0d3fc0af..b4d39a2d5 100644 --- a/src/Text/Pandoc/Writers/Markdown.hs +++ b/src/Text/Pandoc/Writers/Markdown.hs @@ -93,7 +93,7 @@ plainify = bottomUp go pandocTitleBlock :: Doc -> [Doc] -> Doc -> Doc pandocTitleBlock tit auths dat = hang 2 (text "% ") tit <> cr <> - hang 2 (text "% ") (hcat (intersperse (text "; ") auths)) <> cr <> + hang 2 (text "% ") (vcat $ map nowrap auths) <> cr <> hang 2 (text "% ") dat <> cr mmdTitleBlock :: Doc -> [Doc] -> Doc -> Doc |