Project

General

Profile

Actions

Bug #50566

closed

Menu-links generate two empty spaces before closing angle bracket in source code

Added by Gone With the Wind over 11 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
Start date:
2013-07-30
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.1
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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...


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #60595: Add use-statement for GeneralUtilityClosed2014-07-26

Actions
Actions

Also available in: Atom PDF