aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2019-02-09 14:53:22 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2019-02-09 14:53:22 -0800
commitec11f8d9923f7f0f2154e921c97ea8c86b2e17ba (patch)
tree8992393c720fe393914adce996e727058a3412f1
parent5afde8dc767bd25cbde7a3dcbdad72b21cb1eac6 (diff)
downloadpandoc-ec11f8d9923f7f0f2154e921c97ea8c86b2e17ba.tar.gz
ipynb writer - ensure final newline.
-rw-r--r--src/Text/Pandoc/Writers/Ipynb.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Writers/Ipynb.hs b/src/Text/Pandoc/Writers/Ipynb.hs
index 509e60aa0..a268efa01 100644
--- a/src/Text/Pandoc/Writers/Ipynb.hs
+++ b/src/Text/Pandoc/Writers/Ipynb.hs
@@ -62,6 +62,7 @@ writeIpynb opts d = do
notebook <- pandocToNotebook opts d
return $ TE.decodeUtf8 . BL.toStrict . encodePretty' defConfig{
confIndent = Spaces 1,
+ confTrailingNewline = True,
confCompare = keyOrder
[ "cells", "nbformat", "nbformat_minor",
"cell_type", "output_type",