aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2020-06-03 11:53:58 +0200
committerThomas White <taw@physics.org>2020-07-29 18:53:33 +0200
commit3c82267fe10bdbcd65583f0aff31edd5a23de92d (patch)
tree55939276e1cd45713cbe01890c81d85a8abcebb8 /libcrystfel/src
parent6b9dc7ada924a69b24e0525dabf96e32fbc45ab9 (diff)
assplode_algebraic: Ignore spaces
Diffstat (limited to 'libcrystfel/src')
-rw-r--r--libcrystfel/src/datatemplate.c2
1 files changed, 2 insertions, 0 deletions
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++;