Save files with Linux endings

This commit is contained in:
Taylor Helsper 2021-06-22 23:57:32 -05:00
parent 4e9ec4bafa
commit bbdd370df3

View File

@ -14,6 +14,7 @@ def get_file_contents(filename):
return contents
def set_file_contents(filename, data):
data = data.replace('\r\n','\n')
try:
with open(filename, "w") as f:
f.write(data)