summary refs log tree commit diff stats
path: root/ganarchy/templating
diff options
context:
space:
mode:
Diffstat (limited to 'ganarchy/templating')
-rw-r--r--ganarchy/templating/environment.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/ganarchy/templating/environment.py b/ganarchy/templating/environment.py
index a527053..0258f4d 100644
--- a/ganarchy/templating/environment.py
+++ b/ganarchy/templating/environment.py
@@ -22,7 +22,9 @@ import ganarchy.templating.toml
 def get_env():
     env = jinja2.Environment(
         loader=ganarchy.templating.templates.get_template_loader(),
-        autoescape=False
+        autoescape=False,
+        # aka please_stop_mangling_my_templates=True
+        keep_trailing_newline=True
     )
     env.filters['tomlescape'] = ganarchy.templating.toml.tomlescape
     env.filters['tomle'] = env.filters['tomlescape']