Skip to content

Commit 9f25f4f

Browse files
committed
Resolves issue where CSVs saved in Windows have blank lines
1 parent ba3d46a commit 9f25f4f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

flattentool/output.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ def write_sheet(self, sheet_name, sheet):
9090
with open(
9191
os.path.join(self.output_name, self.sheet_prefix + sheet_name + ".csv"),
9292
"w",
93+
newline="",
9394
encoding="utf-8",
9495
) as csv_file:
9596
dictwriter = csv.DictWriter(csv_file, sheet_header)

0 commit comments

Comments
 (0)