diff options
author | Bryan Newbold <bnewbold@archive.org> | 2021-01-22 19:50:35 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2021-01-22 19:50:37 -0800 |
commit | 645f6b40fd8bf25be140430eda7297064193a7ef (patch) | |
tree | 1056bc615412aca0ace2b49f27a77f1af2e63bca | |
parent | 85ba0df07009e1973f0a13e2973cd170afe6ddb6 (diff) | |
download | fatcat-scholar-645f6b40fd8bf25be140430eda7297064193a7ef.tar.gz fatcat-scholar-645f6b40fd8bf25be140430eda7297064193a7ef.zip |
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.
-rw-r--r-- | fatcat_scholar/web.py | 2 |
1 files changed, 0 insertions, 2 deletions
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 |