--- src/apprentice.c | 6 ++++++ 1 file changed, 6 insertions(+) --- src/apprentice.c +++ src/apprentice.c 2017-05-24 11:04:53.931691878 +0000 @@ -2358,6 +2358,12 @@ check_format_type(const char *ptr, int t ptr++; if (*ptr == '#') ptr++; + if (*ptr == ' ') + ptr++; + if (*ptr == '+') + ptr++; + if (*ptr == '\'') + ptr++; #define CHECKLEN() do { \ for (len = cnt = 0; isdigit((unsigned char)*ptr); ptr++, cnt++) \ len = len * 10 + (*ptr - '0'); \