Skip to content

Commit

Permalink
Merge pull request #202 from lefessan/z-2023-03-15-fix-toml-printer
Browse files Browse the repository at this point in the history
Fix TOML printer to select multi-line strings
  • Loading branch information
lefessan committed Mar 15, 2023
2 parents 0a94109 + 73e2ee9 commit 0b7248a
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 0b7248a

Please sign in to comment.