From bbdd370df3134624de8d260918fd70c4efd55bcb Mon Sep 17 00:00:00 2001 From: Taylor Helsper Date: Tue, 22 Jun 2021 23:57:32 -0500 Subject: [PATCH] Save files with Linux endings --- rootfs/standard/var/www/mynode/utilities.py | 1 + 1 file changed, 1 insertion(+) diff --git a/rootfs/standard/var/www/mynode/utilities.py b/rootfs/standard/var/www/mynode/utilities.py index c57cb5d2..af608e3c 100644 --- a/rootfs/standard/var/www/mynode/utilities.py +++ b/rootfs/standard/var/www/mynode/utilities.py @@ -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)