Skip to content

Commit

Permalink
Merge pull request hed-standard#998 from IanCa/develop
Browse files Browse the repository at this point in the history
Always save schemas with newlines, never CLRF
  • Loading branch information
VisLab authored Jul 30, 2024
2 parents 6b3442f + b8601a6 commit e99452f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hed/schema/schema_io/ontology_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,8 @@ def save_dataframes(base_filename, dataframe_dict):
for suffix, dataframe in dataframe_dict.items():
filename = f"{base}_{suffix}.tsv"
with open(filename, mode='w', encoding='utf-8') as opened_file:
dataframe.to_csv(opened_file, sep='\t', index=False, header=True, quoting=csv.QUOTE_NONE)
dataframe.to_csv(opened_file, sep='\t', index=False, header=True,
quoting=csv.QUOTE_NONE, lineterminator="\n")


def convert_filenames_to_dict(filenames):
Expand Down

0 comments on commit e99452f

Please sign in to comment.