Commit 9377c3f5 by Michael DeHaan

Merge pull request #1130 from commandtab/templates-trim-blocks

Setting trim_blocks to True
parents 5a9ca1e5 7c600ae0
......@@ -371,7 +371,7 @@ def template(basedir, text, vars):
def template_from_file(basedir, path, vars):
''' run a file through the templating engine '''
environment = jinja2.Environment(loader=jinja2.FileSystemLoader(basedir), trim_blocks=False)
environment = jinja2.Environment(loader=jinja2.FileSystemLoader(basedir), trim_blocks=True)
environment.filters['to_json'] = json.dumps
environment.filters['from_json'] = json.loads
environment.filters['to_yaml'] = yaml.dump
......
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