From 7bddebeff1a676bad2c832769b03246e25b5411c Mon Sep 17 00:00:00 2001 From: Sumner Evans Date: Thu, 16 Apr 2020 12:03:11 -0600 Subject: [PATCH 1/2] Closes #216: strip whitespace from translated links in nav --- templates/base.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/base.html b/templates/base.html index 28afc98..06d0181 100644 --- a/templates/base.html +++ b/templates/base.html @@ -183,18 +183,18 @@ {% if MAIN_MENU %} {% endif %} From caef42ff2fd4a5aaeb2ce2d8419c36dc0ddf6837 Mon Sep 17 00:00:00 2001 From: Sumner Evans Date: Fri, 17 Apr 2020 13:52:12 -0600 Subject: [PATCH 2/2] Fix extraneous whitespace at the macro level --- templates/base.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/templates/base.html b/templates/base.html index 06d0181..d91fe08 100644 --- a/templates/base.html +++ b/templates/base.html @@ -1,7 +1,7 @@ {% if 'jinja2.ext.i18n' not in JINJA_ENVIRONMENT.extensions and 'jinja2.ext.i18n' not in JINJA_EXTENSIONS %} - {% macro _(msg) %} + {%- macro _(msg) -%} {{ msg % kwargs }} - {% endmacro %} + {%- endmacro -%} {% endif %} @@ -183,18 +183,18 @@ {% if MAIN_MENU %} {% endif %}