utils bump

also dont use splitlines on csv data, there might be quoted newlines we dont want to split on
This commit is contained in:
Leo Hemsted
2019-08-02 14:34:05 +01:00
parent e72540d3f9
commit 1d67c82f0f
5 changed files with 10 additions and 8 deletions

View File

@@ -304,7 +304,7 @@ class Spreadsheet():
def as_rows(self):
if not self._rows:
self._rows = list(csv.reader(
self._csv_data.strip().splitlines(),
StringIO(self._csv_data),
quoting=csv.QUOTE_MINIMAL,
skipinitialspace=True,
))