From 645f6b40fd8bf25be140430eda7297064193a7ef Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Fri, 22 Jan 2021 19:50:35 -0800 Subject: revert jinja2 i18n trimmed flag (not correct place) This doesn't seem to be the right place to add this field, getting a type checking warning. --- fatcat_scholar/web.py | 2 -- 1 file changed, 2 deletions(-) (limited to 'fatcat_scholar') diff --git a/fatcat_scholar/web.py b/fatcat_scholar/web.py index 010ad0d..133ddce 100644 --- a/fatcat_scholar/web.py +++ b/fatcat_scholar/web.py @@ -158,8 +158,6 @@ def load_i18n_templates() -> Any: # remove a lot of whitespace in HTML output with these configs templates.env.trim_blocks = True templates.env.lstrip_blocks = True - # have {% trans %} blocks trim whitespace by default - templates.env.policies['ext.i18n.trimmed'] = True # pass-through application settings to be available in templates templates.env.globals["settings"] = settings d[lang_opt] = templates -- cgit v1.2.3