Closed (duplicate)
Project:
Drupal core
Version:
8.0.x-dev
Component:
markup
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Sep 2010 at 09:37 UTC
Updated:
29 Jul 2014 at 19:03 UTC
Jump to comment: Most recent file
Comments
Comment #1
Jeff Burnz commentedI think this is a good move, that whitespace has plauged me for years, driving me to override theme_links to get rid of it. I think nicely formatted output takes a distant second place to theme-ability in this instance.
Bartik requires a small change also.
Changing component to get the markup peeps eyes on this.
Comment #2
Jeff Burnz commentedfix typo in title.
Comment #4
Jeff Burnz commentedMy bad, ran it against the wrong version of theme.inc, this should be OK.
Comment #6
Jeff Burnz commentedI don't understand the fail, revisions are correct at this time so not sure what the problem is.
Comment #7
jacineHmm, what is the Bartik code doing in this patch? Doesn't seem like it has anything to do with it.
One of the hunks failed in style-rtl.css:
Comment #8
jacineComment #9
Jeff Burnz commentedBecause this change breaks Bartik - we need to include the fix (the tabs get butted up against each other, they are relying on this white space for "padding").
Comment #10
Jeff Burnz commentedIf this fails I must be doing something really wrong here, rolling patches all day and all passes so a bit weird this one keeps failing...
Comment #11
bleen commentedJeff Burnz: this usually means that testbot has been drinking again
Comment #12
sbrattla commentedI see that the very same issue can be found in theme_menu_link(), theme_menu_local_task() and theme_menu_local_action (in menu.inc) too. A newline is added to after each list element. Is that something we should address as well?
Comment #13
jacineI dunno... I'm kinda torn on this.
Comment #14
damien tournoud commentedIs this browser behavior by spec? Why is this space significant here?
Comment #15
sunThis fix, along with some others, is already contained in #98696: Various bugs in theme_links()
I agree that we need to fix this bug, but I'd highly prefer to do #98696
Comment #16
Jeff Burnz commentedIts significant because there is an actual white-space between the list items - even if you set padding 0 margin 0 this "gap" remains, this causes all sorts of hilarity depending on how you theme your links, it would be much easier if this white-space was not there.
Comment #17
sun@Jeff: I totally agree with you. I had to override theme_links() as well as theme_item_list() for every site that I've built since Drupal 5.
However, as mentioned in #15 already, it's rather the entire theme functions that badly need a simplification. And that's what #98696: Various bugs in theme_links() and #256827: Various bugs in theme_item_list() are doing -- which both include this very bug fix.
Comment #18
sunSince #98696: Various bugs in theme_links() has been bumped to D8 - although it fixes an entire list of bugs (including this one) - this one is equally D8 material. Note that the Edge project will provide the cleaned up and fixed theme functions.
And since we will want to do #98696 for D8, I'm marking this issue as duplicate.