Commit ca99d941 authored by Peter Hutterer's avatar Peter Hutterer
Browse files

ci-fairy: strip templating blocks of whitespaces



Otherwise we end up with an obscene amount of empty lines.
Signed-off-by: Peter Hutterer's avatarPeter Hutterer <peter.hutterer@who-t.net>
parent 159f1b97
......@@ -290,7 +290,8 @@ def generate_template(ctx, config, root, template, output_file):
sys.exit(1)
templatedir = templatefile.parent
env = jinja2.Environment(loader=jinja2.FileSystemLoader(os.fspath(templatedir)))
env = jinja2.Environment(loader=jinja2.FileSystemLoader(os.fspath(templatedir)),
trim_blocks=True, lstrip_blocks=True)
template = env.get_template(templatefile.name)
template.stream(data).dump(output_file)
......
Markdown is supported
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