-
Notifications
You must be signed in to change notification settings - Fork 217
Preserve blank lines in function bodies #554
Copy link
Copy link
Closed
Description
Given the following code:
let foo x y =
do_some_setup x ;
do_some_setup y ;
(* This is the important bit *)
important_function x ;
another_important_function x y ;
cleanup x yocamlformat produces:
let foo x y =
do_some_setup x ;
do_some_setup y ;
(* This is the important bit *)
important_function x ;
another_important_function x y ;
cleanup x yIdeally ocamlformat would preserve the blank lines here. Code formatters for other languages collapse consecutive blank lines, but preserve one line (JS example with prettier).
Possibly related: #521.
Reactions are currently unavailable