git.99rst.org
/
stevenblack-hosts.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
ac175ae
)
Issue #1464: fix — force a new line prior to the End comment statement.
author
Steven Black
<redacted>
Sun, 15 Nov 2020 18:32:36 +0000
(13:32 -0500)
committer
Steven Black
<redacted>
Sun, 15 Nov 2020 18:32:36 +0000
(13:32 -0500)
updateHostsFile.py
patch
|
blob
|
history
diff --git
a/updateHostsFile.py
b/updateHostsFile.py
index 6a2ec9d878b84b5de3176d0b9a4757cb08145181..3741bb7e7a15ced10063d4fbf7630e72ce87d5ab 100644
(file)
--- 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)
git clone https://git.99rst.org/PROJECT