mirror of
https://github.com/StevenBlack/hosts.git
synced 2026-07-01 02:36:52 +00:00
Issue #1464: fix — force a new line prior to the End comment statement.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user