@@ -758,9 +758,8 @@ and fmt_core_type c ?(box = true) ?pro ?(pro_space = true) ?constraint_ctx
758758 Cmts. fmt c ptyp_loc
759759 @@ (fun k -> k $ fmt_docstring c ~pro: (fmt " @ " ) doc)
760760 @@ ( if List. is_empty atrs then Fn. id
761- else fun k ->
762- hvbox 0 (Params. parens c.conf (k $ fmt_attributes c ~pre: Cut atrs))
763- )
761+ else fun k ->
762+ hvbox 0 (Params. parens c.conf (k $ fmt_attributes c ~pre: Cut atrs)) )
764763 @@
765764 let parens = parenze_typ xtyp in
766765 hvbox_if box 0
@@ -836,10 +835,10 @@ and fmt_core_type c ?(box = true) ?pro ?(pro_space = true) ?constraint_ctx
836835 | _ ->
837836 list rfs
838837 ( if
839- in_type_declaration
840- && Poly. (c.conf.fmt_opts.type_decl.v = `Sparse )
841- then " @;<1000 0>| "
842- else " @ | " )
838+ in_type_declaration
839+ && Poly. (c.conf.fmt_opts.type_decl.v = `Sparse )
840+ then " @;<1000 0>| "
841+ else " @ | " )
843842 (fmt_row_field c ctx)
844843 in
845844 let protect_token = Exposed.Right. (list ~elt: row_field) rfs in
@@ -3695,6 +3694,7 @@ and fmt_module c ctx ?ext ?epi ?(can_sparse = false) keyword ?(eqty = "=")
36953694 $ hvbox 4
36963695 ( str keyword
36973696 $ fmt_extension_suffix c ext
3697+ $ fmt_attributes c ~pre: (Break (1 , 0 )) atrs
36983698 $ fmt_if rec_flag " rec" $ str " "
36993699 $ fmt_str_loc_opt c name $ list_pn arg_blks fmt_arg
37003700 )
@@ -3707,9 +3707,7 @@ and fmt_module c ctx ?ext ?epi ?(can_sparse = false) keyword ?(eqty = "=")
37073707 $ blk_b.psp
37083708 $ fmt_if (Option. is_none blk_b.pro && Option. is_some xbody) " @ "
37093709 $ blk_b.bdy )
3710- $ blk_b.esp $ fmt_opt blk_b.epi
3711- $ fmt_item_attributes c ~pre: (Break (1 , 0 )) atrs
3712- $ doc_after
3710+ $ blk_b.esp $ fmt_opt blk_b.epi $ doc_after
37133711 $ opt epi (fun epi ->
37143712 fmt_or_k compact
37153713 (fmt_or
@@ -4156,7 +4154,7 @@ and fmt_let c ctx ~ext ~rec_flag ~bindings ~parens ~fmt_atrs ~fmt_expr
41564154 (vbox 0
41574155 ( hvbox 0 (list_fl bindings fmt_binding)
41584156 $ ( if blank_line_after_in then fmt " \n @,"
4159- else break 1000 indent_after_in )
4157+ else break 1000 indent_after_in )
41604158 $ hvbox 0 fmt_expr ) )
41614159 $ fmt_atrs
41624160
0 commit comments