public: avoid spaces in generated menu html (#7689)
This commit is contained in:
parent
a4211c2992
commit
122fcb4a65
|
@ -1,6 +1,7 @@
|
|||
{% load combo %}
|
||||
{% if menuitems %}
|
||||
<ul>
|
||||
{% spaceless %}
|
||||
{% for menuitem in menuitems %}
|
||||
<li class="menu-{{ menuitem.page.slug }} {% if menuitem.selected %}selected{% endif %}"><a
|
||||
href="{% page_absolute_url menuitem.page %}">{{ menuitem.page.title }}</a>
|
||||
|
@ -9,5 +10,6 @@
|
|||
{% endif %}
|
||||
</li>
|
||||
{% endfor %}
|
||||
{% endspaceless %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
|
|
Loading…
Reference in New Issue