Make sure native output ends in newline with --standalone.
This commit is contained in:
parent
bfbc289871
commit
5c35be1362
8 changed files with 8 additions and 8 deletions
|
@ -73,6 +73,6 @@ writeNative opts (Pandoc meta blocks) =
|
||||||
else Nothing
|
else Nothing
|
||||||
withHead = if writerStandalone opts
|
withHead = if writerStandalone opts
|
||||||
then \bs -> text ("Pandoc " ++ "(" ++ show meta ++ ")") $$
|
then \bs -> text ("Pandoc " ++ "(" ++ show meta ++ ")") $$
|
||||||
bs <> cr
|
bs $$ cr
|
||||||
else id
|
else id
|
||||||
in render colwidth $ withHead $ prettyList $ map prettyBlock blocks
|
in render colwidth $ withHead $ prettyList $ map prettyBlock blocks
|
||||||
|
|
Loading…
Add table
Reference in a new issue