Ignore whitespace between formats (not internal to a count+format).
diff --git a/Modules/structmodule.c b/Modules/structmodule.c
index dbba9b4..54ca631 100644
--- a/Modules/structmodule.c
+++ b/Modules/structmodule.c
@@ -38,6 +38,7 @@
#include "mymath.h"
#include <limits.h>
+#include <ctype.h>
/* Exception */
@@ -981,6 +982,8 @@
s = fmt;
size = 0;
while ((c = *s++) != '\0') {
+ if (isspace(c))
+ continue;
if ('0' <= c && c <= '9') {
num = c - '0';
while ('0' <= (c = *s++) && c <= '9') {
@@ -1075,6 +1078,8 @@
res = restart = PyString_AsString(result);
while ((c = *s++) != '\0') {
+ if (isspace(c))
+ continue;
if ('0' <= c && c <= '9') {
num = c - '0';
while ('0' <= (c = *s++) && c <= '9')
@@ -1179,6 +1184,8 @@
str = start;
s = fmt;
while ((c = *s++) != '\0') {
+ if (isspace(c))
+ continue;
if ('0' <= c && c <= '9') {
num = c - '0';
while ('0' <= (c = *s++) && c <= '9')