Skip to content

Commit b8601a6

Browse files
committed
Always save schemas with newlines, never CLRF
1 parent 5a1ff0e commit b8601a6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

hed/schema/schema_io/ontology_util.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,8 @@ def save_dataframes(base_filename, dataframe_dict):
394394
for suffix, dataframe in dataframe_dict.items():
395395
filename = f"{base}_{suffix}.tsv"
396396
with open(filename, mode='w', encoding='utf-8') as opened_file:
397-
dataframe.to_csv(opened_file, sep='\t', index=False, header=True, quoting=csv.QUOTE_NONE)
397+
dataframe.to_csv(opened_file, sep='\t', index=False, header=True,
398+
quoting=csv.QUOTE_NONE, lineterminator="\n")
398399

399400

400401
def convert_filenames_to_dict(filenames):

0 commit comments

Comments
 (0)