commit 653c9a034fe0f81fd93cc7a1fb1bb385490de085 from: Sven M. Hallberg date: Sun Jul 02 15:50:13 2023 UTC skip leading whitespace in rule a85zero This matches the other rules. An ASCII85-encoded stream may begin with arbitrary whitespace. commit - 0cb8c6a3ba749d4b075c1d1c6ffd094676b7e867 commit + 653c9a034fe0f81fd93cc7a1fb1bb385490de085 blob - 294319147561500b4264666b9d09b3781a7eeb1a blob + 6f6875da900aa7c9d36e813729d62640aac5221d --- pdf.c +++ pdf.c @@ -2383,7 +2383,7 @@ init_parser(struct Env *aux) */ /* ASCII85Decode */ - H_ARULE(a85zero, h_ch('z')); + H_ARULE(a85zero, h_right(aws, h_ch('z'))); H_ARULE(a85digit, h_ch_range('!', 'u')); H_RULE(a85eod, SEQ(aws, tilde, aws, rangle, aws, end)); H_RULE(a85two, h_repeat_n(h_right(aws, a85digit), 2));