diff options
author | Thomas White <taw@physics.org> | 2020-06-03 11:53:58 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2020-07-29 18:53:33 +0200 |
commit | 3c82267fe10bdbcd65583f0aff31edd5a23de92d (patch) | |
tree | 55939276e1cd45713cbe01890c81d85a8abcebb8 /libcrystfel | |
parent | 6b9dc7ada924a69b24e0525dabf96e32fbc45ab9 (diff) |
assplode_algebraic: Ignore spaces
Diffstat (limited to 'libcrystfel')
-rw-r--r-- | libcrystfel/src/datatemplate.c | 2 |
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++; |