diff options
author | John MacFarlane <jgm@berkeley.edu> | 2011-01-21 09:58:23 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2011-01-21 09:58:23 -0800 |
commit | 5c35be13625895f52c66f98be81751b49b1b0365 (patch) | |
tree | 6b2350c357e2ab91f6de71ffa2bd936bb17867bd /src | |
parent | bfbc2898714e026a7fb58a7de78df3759c4551db (diff) | |
download | pandoc-5c35be13625895f52c66f98be81751b49b1b0365.tar.gz |
Make sure native output ends in newline with --standalone.
Diffstat (limited to 'src')
-rw-r--r-- | src/Text/Pandoc/Writers/Native.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Writers/Native.hs b/src/Text/Pandoc/Writers/Native.hs index 2ebe83d6b..d2b56cd17 100644 --- a/src/Text/Pandoc/Writers/Native.hs +++ b/src/Text/Pandoc/Writers/Native.hs @@ -73,6 +73,6 @@ writeNative opts (Pandoc meta blocks) = else Nothing withHead = if writerStandalone opts then \bs -> text ("Pandoc " ++ "(" ++ show meta ++ ")") $$ - bs <> cr + bs $$ cr else id in render colwidth $ withHead $ prettyList $ map prettyBlock blocks |