This commit is contained in:
Simon Cruanes 2023-03-31 22:42:18 -04:00
parent 91a2ecee4a
commit 94640e9efe
No known key found for this signature in database
GPG key ID: EBFFF6F283F3A2B4

View file

@ -287,7 +287,9 @@ module Pretty = struct
Buffer.contents buf
let to_format ~width out self : unit =
(* TODO: more efficient implementation based on out *)
(* TODO: more efficient implementation based on:
open a vbox; make custom out that directly emit Format.pp_foo calls;
render to this out. *)
CCFormat.string_lines out (to_string ~width self)
end