Bug #17391
closedTMENU .before property adds extra line return in output
0%
Description
This is a minor thing that only impacts the formatting of the source code in the front end. It appears that the .before property is adding an extra line after its code. It does this in verison 4.1.1 but not in 4.0.4. I prefer it be like it was in 4.04 so output code can be formatted. Of course, this is minor and does not affect the look of the website only the HTML source. Following is the code and the resulting output.
I am using this TS code to generate a menu:
- SETUP GLOBAL MENU
lib.globalMenu = HMENU
lib.globalMenu.entryLevel = 0
lib.globalMenu.1 = TMENU
lib.globalMenu.1.noBlur = 1
lib.globalMenu.1 {
wrap = <ul id="globalmenu"> | </ul> # Normal State Properties
NO.before (<li>
)
NO.after = </li>- Current State Properties
ACT = 1
ACT.before (
<li class="active">
)
ACT.after = </li>
} - Current State Properties
In version 4.1.1 the output looks like this:
<ul id="globalmenu">
<li class="active">
<a href="index.php?id=3" >Home</a></li>
<li>
<a href="index.php?id=24" >About Us</a></li>
<li>
<a href="index.php?id=4" >Products</a></li>
<li>
<a href="index.php?id=23" >Contact</a></li></ul>
In 4.0.4 it looks like this:
<ul id="globalmenu">
<li class="active"><a href="index.php?id=3" >Home</a></li>
<li><a href="index.php?id=24" >About Us</a></li>
<li><a href="index.php?id=4" >Products</a></li>
<li><a href="index.php?id=23" >Contact</a></li></ul>
(issue imported from #M5808)