Add newlines to theme_item_list

catch - January 16, 2008 - 00:09
Project:Drupal
Version:6.x-dev
Component:theme system
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

IE has serious trouble dealing with display: inline; on elements which don't have newlines between them. More detail here: http://drupal.org/node/199861

So this patch adds them, also makes the markup a bit more readable.

AttachmentSizeStatusTest resultOperations
item-list-newline.patch674 bytesIgnoredNoneNone

#1

dvessel - January 16, 2008 - 01:06

The line break is missing in a few places. The problem is noticeable in the theme config page where the secondary tabs push into the right sidebar.

The issue is not isolated with IE. Seems to happen in all browsers and it's by design I think. Line breaks only happen when there's a space or any other character. Ends up treating the whole list like a single string with nothing in-between.

Also removes a stray li close tag for blog pages found when looking into this issue so it's included.

AttachmentSizeStatusTest resultOperations
item-list-linebreak.patch2.24 KBIgnoredNoneNone

#2

catch - January 16, 2008 - 01:16

dvessel: that's quite possible, I ran into this combined with IE not supporting :after - which would insert some whitespace, so it could be all browsers yeah. Thanks for looking into this in more depth, will take a proper look tomorrow.

#3

dvessel - January 20, 2008 - 07:53

This is also affecting rtl list items by preventing it from swapping the positioning.

http://drupal.org/node/203260

#4

Gábor Hojtsy - January 20, 2008 - 13:30

Subscribe

#5

levavie - January 20, 2008 - 19:52

Verified - patching Drupal 6.0 RC2 solved the RTL issue.

Amnon
-
Professional: Drupal Israel | Drupal Development & Consulting | Eco-Healing | Effective Hosting Strategies | בניית אתרים
Personal: Hitech Dolphin: Regain Simple Joy :)

#6

Gábor Hojtsy - January 21, 2008 - 12:06
Status:needs review» fixed

Looks good, thanks Amnon for validating. Committed.

#7

dvessel - January 21, 2008 - 16:44

Gábor, there were other issues with RTL. Although this patch fixes wrapping problems, rtl gets a lot stranger.

#8

Anonymous (not verified) - February 4, 2008 - 16:51
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.