WordPress.org

Make WordPress Core

Opened 8 years ago

Closed 6 years ago

#5980 closed defect (bug) (invalid)

wp_tag_cloud with format=list inserts extra space in ul

Reported by: leoboiko Owned by:
Milestone: Priority: normal
Severity: minor Version: 2.3.3
Component: Template Keywords: wp_tag_cloud, ul, li, space
Focuses: Cc:

Description

Hi. wp_tag_cloud with format=list inserts some pretty-printing space before the first <li> and after the last one. This is bad for themes trying to make the list items inline (for example, my theme at http://namakajiri.net/complog would get an extra space between the tag names and the decorative parenthesis). If everyone's OK with it, here's a quick patch.

Attachments (1)

category-template.patch (442 bytes) - added by leoboiko 8 years ago.

Download all attachments as: .zip

Change History (3)

comment:1 @lloydbudd8 years ago

  • Milestone changed from 2.3.4 to 2.6

leoboiko, thanks for participating in WordPress! Can you consider the behavior in trunk (2.5) and if still a problem there provide a specific example (+screenshot) and patch.

comment:2 @Denis-de-Bernardy6 years ago

  • Component changed from General to Template
  • Milestone 2.9 deleted
  • Resolution set to invalid
  • Status changed from new to closed

if the space is removed it can mess around with text readers. <li>foo</li><li>bar</li> becomes "foobar" instead of "foo" "bar".

Note: See TracTickets for help on using tickets.