summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fatcat_scholar/web.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/fatcat_scholar/web.py b/fatcat_scholar/web.py
index e1ef478..a148c8b 100644
--- a/fatcat_scholar/web.py
+++ b/fatcat_scholar/web.py
@@ -105,6 +105,10 @@ def load_i18n_templates():
locale_ngettext(translations),
newstyle=True,
)
+ # remove a lot of whitespace in HTML output with these configs
+ templates.env.trim_blocks = True
+ templates.env.istrip_blocks = True
+ # pass-through application settings to be available in templates
templates.env.globals['settings'] = settings
d[lang_opt] = templates
return d