pwa: strip navigation to avoid trailing whitespaces from template (#61082)

This commit is contained in:
Frédéric Péters 2022-01-25 17:43:27 +01:00
parent 4c6709c91e
commit bcdb70fff9
1 changed files with 2 additions and 1 deletions

View File

@ -16,6 +16,7 @@
from django import template
from django.conf import settings
from django.utils.safestring import mark_safe
from combo.apps.pwa.models import PwaNavigationEntry
@ -36,4 +37,4 @@ def pwa_navigation(context):
'render_skeleton': context.get('render_skeleton'),
'site_base': context['request'].build_absolute_uri('/')[:-1],
}
return pwa_navigation_template.render(context)
return mark_safe(pwa_navigation_template.render(context).strip())