Bugzilla – Bug 2547
Extra space in the Handheld skin after track fields
Last modified: 2008-09-15 14:39:24 UTC
The Handheld skin displays an extra space after a field name. For example: "TITLE from ALBUM by ARTIST" On a BlackBerry (OS v4.0.219) browser, the extra space causes the 2 spaces to be condenced into no space. The result is not pretty.
Alex: I'm confused by this. Are you saying that two spaces next to each other in the HTML get folded into zero spaces? I've never heard of browser behavior like this before...
(In reply to comment #1) > Alex: I'm confused by this. Are you saying that two spaces next to each other > in the HTML get folded into zero spaces? I've never heard of browser behavior > like this before... > Correct. It appears that the skin contains the following fields after the TITLE and ALBUM fields: <TAB><TAB><TAB><LF><LF><TAB><TAB><TAB> (in hex: 09 09 09 0D 0A 0D 0A 09 09 09). Given that the intention of such a skin is for execution on a low bandwidth and low powered devices, such "extra" html formating is unnecessary. The BlackBerry Browser translates all that into no space. (I've also mentioned this to RIM as a bug.)
While the additional characters are clearly unnecessary (they result from the template toolkit code formatting), they should not be stripped to nothing at all. I don't know any standard, but in my experience it's usually replaced by one single space. You did right to inform RIM about it as well :-). I fear we're getting more diversity to fight with Handheld than with any other skin...
Which pages are like this? most of handheld pages are "title", without "by artist from album", at least in current builds.
In the 6.5 builds, please select "Browse by album" in the Handheld skin.
Created attachment 1212 [details] Screen capture of the problem
A simple workaround for this would be to replace one of those tab characters with a space, I imagine. Worth a shot and no harm done. Michael: do you know where that is off the top of your head?
HTML/Handheld/browsedbitems_list.html line 8. that's the line that adds the artistAsHTML bit.
Created attachment 1214 [details] put a space instead of tab only Alex, could you please put this file in HTML/Handheld and give it another try? (and thanks to kdf for the pointer :-))
I did some work on the Handheld skin today. Could you please give tomorrow's build a try and give us some feedback here? Thanks!
Looks good. Thanks. Feel free to close out the bug if this is the permanent solution.
What's looking good: the file I attached here or the latest trunk?
My appologies for the vagueness. The latest nightly build 7236 appears to address the problem on the Blackberry. Thanks.
Very good. Thanks for the feedback! (Could somebody close, please? I can't...)
consider it done!