CommonMark writer: avoid excess blank lines at end of output.

This commit is contained in:
John MacFarlane 2017-08-08 14:00:13 -07:00
parent 3752298d91
commit 1ad9679dc9
2 changed files with 1 additions and 9 deletions

View file

@ -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

View file

@ -71,8 +71,6 @@ My:thumbsup:emoji:heart:
| orange | 1.12 |
The caption.
```
```
@ -80,8 +78,6 @@ The caption.
“hi”
^D
"hi"
```
```
@ -89,8 +85,6 @@ The caption.
"hi"
^D
“hi”
```
```
@ -98,8 +92,6 @@ The caption.
"hi"
^D
"hi"
```
```