--- src/apprentice.c | 8 ++++++++ 1 file changed, 8 insertions(+) --- src/apprentice.c +++ src/apprentice.c 2016-11-24 09:08:42.209492732 +0000 @@ -2348,8 +2348,16 @@ check_format_type(const char *ptr, int t } } else h = 0; + if (*ptr == '#') + ptr++; + if (*ptr == ' ') + ptr++; if (*ptr == '-') ptr++; + if (*ptr == '+') + ptr++; + if (*ptr == '\'') + ptr++; if (*ptr == '.') ptr++; #define CHECKLEN() do { \