From 7c600ae0d3a4426edbd0c51e0a4ba803647d2718 Mon Sep 17 00:00:00 2001 From: Collin Allen Date: Fri, 28 Sep 2012 14:58:05 -0700 Subject: [PATCH] Setting trim_blocks to True --- lib/ansible/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/utils.py b/lib/ansible/utils.py index a102acc311f..a980e49ef4f 100644 --- a/lib/ansible/utils.py +++ b/lib/ansible/utils.py @@ -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