From: Steven Black Date: Sun, 15 Nov 2020 18:32:36 +0000 (-0500) Subject: Issue #1464: fix — force a new line prior to the End comment statement. X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=af9cc115a9ccf8ac131e5a8659b35ad44e0b8c83;p=stevenblack-hosts.git Issue #1464: fix — force a new line prior to the End comment statement. --- 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)