Skip to content

Commit

Permalink
Fix TOML printer to select multi-line strings
Browse files Browse the repository at this point in the history
  • Loading branch information
lefessan committed Mar 15, 2023
1 parent 0a94109 commit 73e2ee9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/toml.7.1.0/printer.ml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ let print_float formatter value =
Format.pp_print_float formatter value

let print_string formatter value =
let has_newline = String.contains value '"' in
let has_newline = String.contains value '\n' in
if has_newline then begin
Format.pp_print_string formatter {|"""|};
Format.pp_print_newline formatter ();
Expand Down

0 comments on commit 73e2ee9

Please sign in to comment.