diff --git a/CHANGELOG.md b/CHANGELOG.md index 1572cf9..e094c27 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ GeoIP DB to avoid being blocked by security proxies system path - Fix `SMTP AUTH extension not supported by server` error on some SMTP servers (#12) +- Always use `\n` as the newline when generating CSVs 3.9.7 ----- diff --git a/parsedmarc/__init__.py b/parsedmarc/__init__.py index 013c409..e643f85 100644 --- a/parsedmarc/__init__.py +++ b/parsedmarc/__init__.py @@ -624,7 +624,7 @@ def parsed_aggregate_reports_to_csv(reports): "envelope_to", "dkim_domains", "dkim_selectors", "dkim_results", "spf_domains", "spf_scopes", "spf_results"] - csv_file_object = StringIO() + csv_file_object = StringIO(newline="\n") writer = DictWriter(csv_file_object, fields) writer.writeheader()