aboutsummaryrefslogtreecommitdiff
path: root/src/Text
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2017-08-08 14:00:13 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2017-08-08 14:00:13 -0700
commit1ad9679dc9147a778d272003c868d4d4f638fd31 (patch)
treef5c2458b20fcf4b371ab0d9023000a068f920bef /src/Text
parent3752298d917f101ac0279b7fc057c38d765f1770 (diff)
downloadpandoc-1ad9679dc9147a778d272003c868d4d4f638fd31.tar.gz
CommonMark writer: avoid excess blank lines at end of output.
Diffstat (limited to 'src/Text')
-rw-r--r--src/Text/Pandoc/Writers/CommonMark.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Writers/CommonMark.hs b/src/Text/Pandoc/Writers/CommonMark.hs
index 20a22e051..77562ed8a 100644
--- a/src/Text/Pandoc/Writers/CommonMark.hs
+++ b/src/Text/Pandoc/Writers/CommonMark.hs
@@ -86,7 +86,7 @@ blocksToCommonMark opts bs = do
then Just $ writerColumns opts
else Nothing
nodes <- blocksToNodes opts bs
- return $
+ return $ T.stripEnd $
nodeToCommonmark cmarkOpts colwidth $
node DOCUMENT nodes