diff --git a/baz.py b/baz.py index 3db405f..5c3b351 100755 --- a/baz.py +++ b/baz.py @@ -31,7 +31,7 @@ class Computer: context = {'c': self} loader = jinja2.FileSystemLoader('templates/') - environment = jinja2.Environment(loader=loader, trim_blocks=True) + environment = jinja2.Environment(loader=loader, trim_blocks=True, keep_trailing_newline=True) for f in files: template = environment.get_template(f) (Path('output') / self.name).mkdir(parents=True,exist_ok=True)