refactoring, html fixes

This commit is contained in:
Devaev Maxim
2018-11-05 04:39:20 +03:00
parent ca52f12378
commit 2732482d36
7 changed files with 40 additions and 34 deletions

View File

@@ -37,6 +37,7 @@ def main():
text = html_file.read()
text = text.strip()
text = text.replace("\"", "\\\"")
text = text.replace("%VERSION%", "\" VERSION \"")
text = textwrap.indent(text, "\t", (lambda line: True))
text = "\n".join(("%s \\" if line.strip() else "%s\\") % (line) for line in text.split("\n"))