Issue #1464: fix — force a new line prior to the End comment statement.
authorSteven Black <redacted>
Sun, 15 Nov 2020 18:32:36 +0000 (13:32 -0500)
committerSteven Black <redacted>
Sun, 15 Nov 2020 18:32:36 +0000 (13:32 -0500)
updateHostsFile.py

index 6a2ec9d878b84b5de3176d0b9a4757cb08145181..3741bb7e7a15ced10063d4fbf7630e72ce87d5ab 100644 (file)
@@ -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)
git clone https://git.99rst.org/PROJECT