Fixing up JSON text output

This commit is contained in:
John Whitington
2021-12-30 15:25:24 +00:00
parent 618da13a80
commit dd2f8fd161
8 changed files with 44 additions and 22 deletions

View File

@ -274,7 +274,7 @@ let print_dict_entry pdf key =
match Pdf.lookup_direct pdf key d with
| Some v ->
(* We use a double newline as a separator. *)
Printf.printf "%s\n\n" (Cpdfyojson.Safe.to_string (Cpdfjson.json_of_object pdf (fun _ -> ()) false false v));
Printf.printf "%s\n\n" (Cpdfyojson.Safe.to_string (Cpdfjson.json_of_object ~clean_strings:true pdf (fun _ -> ()) false false v));
d
| None -> d
in