From c78906e0ea997be270f35b507d9df41e271d7b4a Mon Sep 17 00:00:00 2001 From: Adrien Beudin Date: Mon, 31 Oct 2016 14:23:29 +0100 Subject: [PATCH] enable trim blocks --- prosopopee/prosopopee.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prosopopee/prosopopee.py b/prosopopee/prosopopee.py index 03359e1..cc62fe6 100644 --- a/prosopopee/prosopopee.py +++ b/prosopopee/prosopopee.py @@ -259,7 +259,7 @@ def main(): templates_dir.append(os.path.join(os.path.split(os.path.realpath(__file__))[0], "themes", "exposure", "templates")) - templates = Environment(loader=FileSystemLoader(templates_dir)) + templates = Environment(loader=FileSystemLoader(templates_dir), trim_blocks=True) index_template = templates.get_template("index.html") gallery_index_template = templates.get_template("gallery-index.html")