pwa: strip navigation to avoid trailing whitespaces from template (#61082)
This commit is contained in:
parent
4c6709c91e
commit
bcdb70fff9
|
@ -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())
|
||||
|
|
Loading…
Reference in New Issue