git.iko.soy/typeable/pandoc
on master help sign in
CommonMark writer: avoid excess blank lines at end of output.
commit1ad9679dc9147a778d272003c868d4d4f638fd31 authorJohn MacFarlane <jgm@berkeley.edu> dateTue 8 Aug 2017, 14:00 (9 years ago) parent3752298
2 files changed+1−9
src/Text/Pandoc/Writers/CommonMark.hs+1−1 test/command/gfm.md−8
src/Text/Pandoc/Writers/CommonMark.hs+1−1
@@ -86,7 +86,7 @@ blocksToCommonMark opts bs = do
8686 then Just $ writerColumns opts
8787 else Nothing
8888 nodes <- blocksToNodes opts bs
89− return $
89+ return $ T.stripEnd $
9090 nodeToCommonmark cmarkOpts colwidth $
9191 node DOCUMENT nodes
9292
test/command/gfm.md−8
@@ -71,8 +71,6 @@ My:thumbsup:emoji:heart:
7171| orange | 1.12 |
7272
7373The caption.
74−
75−
7674```
7775
7876```
@@ -80,8 +78,6 @@ The caption.
8078“hi”
8179^D
8280"hi"
83−
84−
8581```
8682
8783```
@@ -89,8 +85,6 @@ The caption.
8985"hi"
9086^D
9187“hi”
92−
93−
9488```
9589
9690```
@@ -98,8 +92,6 @@ The caption.
9892"hi"
9993^D
10094"hi"
101−
102−
10395```
10496
10597```