aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Writers
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2011-01-06 16:53:21 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2011-01-06 16:53:21 -0800
commitaea93977f56810b512478652428ff2be89768788 (patch)
tree2c932bef82eac3e9d5966a398656c9d53ccee698 /src/Text/Pandoc/Writers
parent303ce8a9e5a24ddc51d47900eaae61a5d0a10d28 (diff)
downloadpandoc-aea93977f56810b512478652428ff2be89768788.tar.gz
Markdown writer: blank line after delimited code block.
Diffstat (limited to 'src/Text/Pandoc/Writers')
-rw-r--r--src/Text/Pandoc/Writers/Markdown.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Text/Pandoc/Writers/Markdown.hs b/src/Text/Pandoc/Writers/Markdown.hs
index 3b063c8cd..d402d6c12 100644
--- a/src/Text/Pandoc/Writers/Markdown.hs
+++ b/src/Text/Pandoc/Writers/Markdown.hs
@@ -234,8 +234,8 @@ blockToMarkdown opts (CodeBlock attribs str) = return $
if writerStrictMarkdown opts || attribs == ([],[],[])
then nest (writerTabStop opts) (text str) <> blankline
else -- use delimited code block
- flush $ tildes <> space <> attrs <> cr <> text str <>
- cr <> tildes <> blankline
+ flush (tildes <> space <> attrs <> cr <> text str <>
+ cr <> tildes) <> blankline
where tildes = text "~~~~"
attrs = braces $ hsep [attribId, attribClasses, attribKeys]
attribId = case attribs of