Make the bookmark file build have a bookmarkable link

This commit is contained in:
chylex 2016-11-03 16:31:20 +01:00
parent 41124f4e8c
commit 70484d9db2

View File

@ -55,7 +55,7 @@ def build_tracker():
os.remove(output_file_tmp)
with open(output_file_bookmark, "w") as out:
out.write("<a href='")
out.write("<a rel='sidebar' title='Discord History Tracker' href='")
with open(output_file_raw, "r") as raw:
out.write(raw.read().replace("&", "&amp;").replace('"', "&quot;").replace("'", "&#x27;").replace("<", "&lt;").replace(">", "&gt;"))