diff options
author | John MacFarlane <jgm@berkeley.edu> | 2010-07-20 12:42:12 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2010-07-20 12:42:12 -0700 |
commit | feb70b6e93151682d0560ea30318d5c23ecae8e9 (patch) | |
tree | 431d88e7c062c361a4ab64c2312d83e561d02a52 /src/pandoc.hs | |
parent | 465a4a66993eba9017faa950a9737ae1c5f68786 (diff) | |
download | pandoc-feb70b6e93151682d0560ea30318d5c23ecae8e9.tar.gz |
Made spacing at end of output more consistent.
Previously some of the writers added spurious whitespace.
This has been removed, resolving Issue #232.
NOTE: If your application combines pandoc's output with other
text, for example in a template, you may need to add spacing.
For example, a pandoc-generated markdown file will not have
a blank line after the final block element. If you are inserting
it into another markdown file, you will need to make sure there
is a blank line between it and the next block element.
Diffstat (limited to 'src/pandoc.hs')
-rw-r--r-- | src/pandoc.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pandoc.hs b/src/pandoc.hs index cd4d65aa5..8ba4616ae 100644 --- a/src/pandoc.hs +++ b/src/pandoc.hs @@ -833,5 +833,5 @@ main = do writerOutput <- writer writerOptions doc'' if outputFile == "-" - then B.putStrLn writerOutput + then B.putStr writerOutput else B.writeFile outputFile writerOutput |