-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
….2 (#149) Co-authored-by: favonia <[email protected]>
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,7 +42,7 @@ let map f d = {d with message = f d.message} | |
let string_of_text text : string = | ||
let buf = Buffer.create 20 in | ||
let fmt = Format.formatter_of_buffer buf in | ||
let () = Format.pp_set_geometry fmt ~max_indent:2 ~margin:Int.max_int in | ||
let () = Format.pp_set_geometry fmt ~max_indent:2 ~margin:(Format.pp_infinity-1) in | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
favonia
Author
Contributor
|
||
text fmt; | ||
Format.pp_print_flush fmt (); | ||
Str.global_replace (Str.regexp "\\([\r\n]+ *\\)+") " " @@ | ||
|
There is something strange going on: with
max_indent:2
, every new box will insert a new line. Is that the intended behavior?