Commit 8a255f7b authored by Matthias Braun's avatar Matthias Braun
Browse files

ensure automatically generated files have a newline at the end

parent 6cba2237
......@@ -287,7 +287,10 @@ def main(argv):
env.globals['warning'] = "/* Warning: automatically generated file */"
template = env.get_template(templatefile)
result = template.render().encode("utf-8")
if result[-1] != "\n":
result += "\n"
if __name__ == "__main__":
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment