public: avoid spaces in generated menu html (#7689)

This commit is contained in:
Frédéric Péters 2015-06-26 16:18:38 +02:00
parent a4211c2992
commit 122fcb4a65
1 changed files with 2 additions and 0 deletions

View File

@ -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 %}