Bug #50566
closedMenu-links generate two empty spaces before closing angle bracket in source code
100%
Description
Enviroment:
TYPO3 CMS 6.1.2
php 5.4.10
MAMP 2
Mac OS X 10.7.5
Steps to reproduce the bug:
1. Fluid Template:
<div class="menu"><f:format.html>{MENU_MAIN}</f:format.html></div>
or
<div class="menu"><f:format.raw>{MENU_MAIN}</f:format.raw></div>
2. TypoScript:
lib.MENU_MAIN = HMENU
lib.MENU_MAIN {
extAll = 0
wrap = <ul>|</ul>
1 = TMENU
1 {
NO = 1
NO {
wrapItemAndSub = <li>|</li>
ATagTitle.field = title
}
ACT < .NO
ACT.wrapItemAndSub = <li class="active">|</li>
}
}
The generated source code looks like this:
<ul>
<li><a href="/index.php?id=16" title="KoFoMi 1-17" >KoFoMi 1-17</a></li>
<li><a href="/index.php?id=17" title="Symposien" >Symposien</a></li>
<li><a href="/index.php?id=18" title="Wohin?" >Wohin?</a></li>
</ul>
Rene-Ralf Schröder mentions that:
- this is also the case on the TYPO3 demo site:
http://introduction.typo3cms.demo.typo3.org/
- this does not happen on older 4.7 versions
- the 2 spaces are placed between title tag and class parameters, if there are any; in that case there are no gaps before the closing angle bracket.
Thanks to Rene-Ralf Schröder and Chris Wolff!
To my knowledge this kind of source code formatting will not be valid for A+++ (Government Package?), but I might be wrong here...