mirror of
https://github.com/johnwhitington/cpdf-source.git
synced 2025-06-05 22:09:39 +02:00
Fix reading of bookmark files with \n in them
This commit is contained in:
4
cpdf.ml
4
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 =
|
||||
|
Reference in New Issue
Block a user