aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2023-03-11 16:37:51 +0300
committerGitHub <noreply@github.com>2023-03-11 16:37:51 +0300
commitef9efb61aa1e0500ffc522b97d072a490ff54788 (patch)
tree740b8d74aa1e039e73a266aa0b937b37f05926a6
parentb9fd9c81de20bf5c95823fccbbb6b7996594a3a9 (diff)
parentbab972ff8ab6be1132ca2b58a2c4fadac0a0685d (diff)
Merge pull request #7954 from EllangoK/xyz-newline
Fixes newlines within checkpoints being detected as its own entry
-rw-r--r--scripts/xyz_grid.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/xyz_grid.py b/scripts/xyz_grid.py
index f068598d..87e33d79 100644
--- a/scripts/xyz_grid.py
+++ b/scripts/xyz_grid.py
@@ -433,7 +433,7 @@ class Script(scripts.Script):
if opt.label == 'Nothing':
return [0]
- valslist = [x.strip() for x in chain.from_iterable(csv.reader(StringIO(vals)))]
+ valslist = [x.strip() for x in chain.from_iterable(csv.reader(StringIO(vals))) if x]
if opt.type == int:
valslist_ext = []