From 9cb534761838ddade7bf342cd40b7118e49aa533 Mon Sep 17 00:00:00 2001 From: John Whitington Date: Tue, 23 Apr 2019 18:46:31 +0100 Subject: [PATCH] Fix reading of bookmark files with \n in them --- cpdf.ml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cpdf.ml b/cpdf.ml index 74d86dc..3e60dc3 100644 --- a/cpdf.ml +++ b/cpdf.ml @@ -953,8 +953,8 @@ let verify_bookmarks pdf lastlevel endpage marks = let rec fixup_characters prev = function | [] -> rev prev | '\\'::'\\'::t -> fixup_characters ('\\'::prev) t - | '\\'::'"'::t -> fixup_characters ('\"'::prev) t - | '\\'::'\n'::t -> fixup_characters ('\n'::prev) t (* This can never have been right? *) + | '\\'::'"'::t -> fixup_characters ('"'::prev) t + | '\\'::'n'::t -> fixup_characters ('\n'::prev) t | h::t -> fixup_characters (h::prev) t let debug_bookmark_string s =