refactoring

This commit is contained in:
Devaev Maxim
2019-03-13 22:10:36 +03:00
parent 8a2a0474b2
commit 966f226dde
9 changed files with 49 additions and 81 deletions

View File

@@ -41,7 +41,7 @@ def main():
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"))
text = "const char *%s = \" \\\n%s\n\";\n" % (name, text)
text = "const char %s[] = \" \\\n%s\n\";\n" % (name, text)
text = textwrap.dedent("""
/*****************************************************************************
# #