diff options
Diffstat (limited to 'Build/source/texk/web2c/pdftexdir/epdf.c')
-rw-r--r-- | Build/source/texk/web2c/pdftexdir/epdf.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Build/source/texk/web2c/pdftexdir/epdf.c b/Build/source/texk/web2c/pdftexdir/epdf.c index 72df8c778c2..2192886b806 100644 --- a/Build/source/texk/web2c/pdftexdir/epdf.c +++ b/Build/source/texk/web2c/pdftexdir/epdf.c @@ -77,8 +77,16 @@ void epdf_mark_glyphs(fd_entry * fd, char *charset) if (charset == NULL) return; assert(fd != NULL); + while (*charset == ' ' || *charset == '\t') + charset++; for (s = charset + 1, q = charset + strlen(charset); s < q; s = p + 1) { - for (p = s; *p != '\0' && *p != '/'; p++); + for (p = s; *p != '\0' && *p != '/' && *p != ' ' && *p != '\t'; p++); + if (*p == ' ' || *p == '\t') { + *p = '\0'; + p++; + while (*p == ' ' || *p == '\t') + p++; + } *p = '\0'; if ((char *) avl_find(fd->gl_tree, s) == NULL) { glyph = xstrdup(s); |