diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2018-06-22 16:22:54 +0200 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2018-06-22 18:07:58 +0100 |
commit | 289a8b3bae2e076e58349943519611d4dad6c3cc (patch) | |
tree | 5463a1ef5525a93866fe04f47fd9b8b6e4e9226e | |
parent | 89e48d25f4c25bb454c93349ecbab169ae5f0463 (diff) | |
download | mupdf-289a8b3bae2e076e58349943519611d4dad6c3cc.tar.xz |
Tokenize on all whitespace when parsing DA string.
-rw-r--r-- | source/pdf/pdf-annot.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/pdf/pdf-annot.c b/source/pdf/pdf-annot.c index cf072c60..b265d9d9 100644 --- a/source/pdf/pdf-annot.c +++ b/source/pdf/pdf-annot.c @@ -1424,7 +1424,7 @@ pdf_parse_default_appearance(fz_context *ctx, const char *da, const char **font, color[0] = color[1] = color[2] = 0; fz_strlcpy(buf, da, sizeof buf); - while ((tok = fz_strsep(&p, " ")) != NULL) + while ((tok = fz_strsep(&p, " \n\r\t")) != NULL) { if (tok[0] == 0) ; |