Fix CSV export of view to only put single CR character. (#1186)

Fixes #12158
This commit is contained in:
Paul Culley 2021-05-06 10:13:02 -05:00 committed by GitHub
parent 9e43f060d1
commit 5ad5f08a2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -49,7 +49,7 @@ class CSVTab(TabbedDoc):
else:
self.filename = filename
self.f = open(self.filename, "w",
self.f = open(self.filename, "w", newline='',
encoding='utf_8_sig' if win() else 'utf_8')
self.writer = csv.writer(self.f)