Skip to content

Commit

Permalink
Merge pull request AUTOMATIC1111#7954 from EllangoK/xyz-newline
Browse files Browse the repository at this point in the history
Fixes newlines within checkpoints being detected as its own entry
  • Loading branch information
AUTOMATIC1111 authored Mar 11, 2023
2 parents b9fd9c8 + bab972f commit ef9efb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/xyz_grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ def process_axis(opt, vals):
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 = []
Expand Down

0 comments on commit ef9efb6

Please sign in to comment.