-
Notifications
You must be signed in to change notification settings - Fork 191
Open
Labels
Description
When setting the firstClass and/or lastClass options to null or an empty string, like this:
{{ knp_menu_render('AcmeDemoBundle:Builder:mainMenu', { 'firstClass': null, 'lastClass': null }) }}
A menu with the following class attributes is rendered:
<ul>
<li class="current ">...</li>
<li class="">...</li>
</ul>
Even though this is completely valid markup, it would be nice if the trailing space after the class current would be gone, as well as the empty class attributes:
<ul>
<li class="current">...</li>
<li>...</li>
</ul>