From af9cc115a9ccf8ac131e5a8659b35ad44e0b8c83 Mon Sep 17 00:00:00 2001 From: Steven Black Date: Sun, 15 Nov 2020 13:32:36 -0500 Subject: [PATCH] =?UTF-8?q?Issue=20#1464:=20fix=20=E2=80=94=20force=20a=20?= =?UTF-8?q?new=20line=20prior=20to=20the=20End=20comment=20statement.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- updateHostsFile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/updateHostsFile.py b/updateHostsFile.py index 6a2ec9d87..3741bb7e7 100644 --- a/updateHostsFile.py +++ b/updateHostsFile.py @@ -775,7 +775,7 @@ def create_initial_file(): ): start = "# Start {}\n\n".format(os.path.basename(os.path.dirname(source))) - end = "# End {}\n\n".format(os.path.basename(os.path.dirname(source))) + end = "\n# End {}\n\n".format(os.path.basename(os.path.dirname(source))) with open(source, "r", encoding="UTF-8") as curFile: write_data(merge_file, start + curFile.read() + end)