We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 90d2662 commit 74a9647Copy full SHA for 74a9647
simt_emlite/smip/smip_csv.py
@@ -66,7 +66,7 @@ def write(
66
67
# Write CSV file
68
with open(full_csv_path, "w", newline="") as csvfile:
69
- writer = csv.writer(csvfile, quoting=csv.QUOTE_ALL)
+ writer = csv.writer(csvfile, quoting=csv.QUOTE_ALL, lineterminator="\r\n")
70
71
# Build column name with optional element marker (e.g., "EML123456789-A")
72
column_name = f"{serial}-{element_marker}" if element_marker else serial
@@ -97,7 +97,7 @@ def write(
97
)
98
99
# Write the raw line directly to avoid quoting data rows
100
- csvfile.write(f"{timestamp_str},{import_str},{export_str}\n")
+ csvfile.write(f"{timestamp_str},{import_str},{export_str}\r\n")
101
102
@staticmethod
103
def write_from_profile_records(
0 commit comments