Closed (fixed)
Project:
Drupal core
Version:
6.2
Component:
theme system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 Aug 2008 at 17:34 UTC
Updated:
3 Sep 2008 at 21:23 UTC
The new line character "\n" in the following line
$output .= "</li>\n";
was adding unwanted whitespace which made the mouse-overs look just a hair off,
makes the html code more readable but not useful when tightly spaced buttons are needed.
Comments
Comment #1
dvessel commentedIt's needed for RTL languages. Without it, it doesn't allow it to flow properly.
Comment #2
benmirkhah commentedHow about testing for that?
$output .= "< /li >".( isRTL ? "\n" : null);
Since over the net RTL is used less often than neatly flushed menus, just a thought...
Comment #3
benmirkhah commentedSwitched the status to active since the RTL explanation doesn't outweigh the general annoyance of this bug which can be simply fixed with an if statement checking for RTL...
Patched 3 systems with this issue last week so pardon my impatience =)
Comment #4
dvessel commentedI'm sorry but theme_links is run quite often so the overhead is not worth it. I did a quick test for a bare test site with 10 nodes loading the front page and that condition would be run over 76 times. Sites with a lot of blocks would increase that even further. It's also used for primary/secondary links.
Have you experimented with CSS? Using display:block and floating the elements should remove any white space.
Comment #5
benmirkhah commentedThanks for taking that time to test it, your CSS suggestion fixed the problem, our theme had display set as inline...
Status closed