From 289a8b3bae2e076e58349943519611d4dad6c3cc Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 22 Jun 2018 16:22:54 +0200 Subject: Tokenize on all whitespace when parsing DA string. --- source/pdf/pdf-annot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/pdf') 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) ; -- cgit v1.2.3