Skip to content

Commit

Permalink
Merge pull request #15832 from AUTOMATIC1111/xyz-csv-skipinitialspace
Browse files Browse the repository at this point in the history
XYZ CSV skipinitialspace
  • Loading branch information
AUTOMATIC1111 authored Jun 8, 2024
2 parents 04164a8 + 10f2407 commit 5977cb0
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 @@ -209,7 +209,7 @@ def list_to_csv_string(data_list):


def csv_string_to_list_strip(data_str):
return list(map(str.strip, chain.from_iterable(csv.reader(StringIO(data_str)))))
return list(map(str.strip, chain.from_iterable(csv.reader(StringIO(data_str), skipinitialspace=True))))


class AxisOption:
Expand Down

0 comments on commit 5977cb0

Please sign in to comment.