From 3c82267fe10bdbcd65583f0aff31edd5a23de92d Mon Sep 17 00:00:00 2001 From: Thomas White Date: Wed, 3 Jun 2020 11:53:58 +0200 Subject: assplode_algebraic: Ignore spaces --- libcrystfel/src/datatemplate.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libcrystfel/src') diff --git a/libcrystfel/src/datatemplate.c b/libcrystfel/src/datatemplate.c index 6cc57d2d..0e803f87 100644 --- a/libcrystfel/src/datatemplate.c +++ b/libcrystfel/src/datatemplate.c @@ -341,6 +341,8 @@ static int assplode_algebraic(const char *a_orig, char ***pbits) ch = a[i]; + if ( ch == ' ' ) continue; + if ( (ch == '+') || (ch == '-') ) { if ( idx >= 0 ) bits[idx][istr] = '\0'; idx++; -- cgit v1.2.3