Skip to content

Commit 7deda4a

Browse files
avsmcraigfe
authored andcommitted
do not output blank lines to jupyter notebook
Signed-off-by: Anil Madhavapeddy <[email protected]>
1 parent 25ba84b commit 7deda4a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

bin/jupyter.ml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ let run _setup syntax file =
5656
| [] -> []
5757
in
5858
List.iter (function
59+
| Mdx.Text "" -> ()
5960
| Mdx.Text x ->
6061
cells := (txt x) :: !cells
6162
| Mdx.Block {value=OCaml; contents; _} ->

0 commit comments

Comments
 (0)