ipynb writer - ensure final newline.

This commit is contained in:
John MacFarlane 2019-02-09 14:53:22 -08:00
parent 5afde8dc76
commit ec11f8d992

View file

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