Bug 140673 - the bookmark list is visually distorted
Summary: the bookmark list is visually distorted
Status: RESOLVED FIXED
Alias: None
Product: keditbookmarks
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-26 17:41 UTC by Maciej Pilichowski
Modified: 2009-11-18 02:38 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
distortion (94.49 KB, image/png)
2007-01-26 17:42 UTC, Maciej Pilichowski
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Maciej Pilichowski 2007-01-26 17:41:07 UTC
Version:            (using KDE KDE 3.5.5)
Installed from:    SuSE RPMs

This bug exists since I can ever remember. Always the same position (I mean, geometrically) from the top (item index 0; not visual top of the window) of the list. 

Just take a look at the screenshot.
Comment 1 Maciej Pilichowski 2007-01-26 17:42:12 UTC
Created attachment 19428 [details]
distortion
Comment 2 Philip Rodrigues 2007-01-27 00:41:58 UTC
Does the same problem occur if you rename that bookmark?
Comment 3 Maciej Pilichowski 2007-01-27 08:21:15 UTC
It depends. The title says "COMPUTING, COGNITION AND 
INFORMATION COMPRESSION".
a) if I just remove or add character -- nothing changes
b) if I remove spaces and add "x" at the end -- the title is shortened
c) if I add "spaces" back -- the title is shortened
d) if I paste the text back -- there is a distortion (line break)

I guess there is some kind of space (ASCII 160?) or tab there which works like a line breaker but I am unable to extract it.
Comment 4 Philip Rodrigues 2007-01-27 22:16:31 UTC
Can you find for certain what the line-breaking character is? I guess it should be ignored for the purposes of drawing listview items
Comment 5 Maciej Pilichowski 2007-01-28 08:24:41 UTC
Ach, it is 0x0A in the bookmarks file. I guess, I copy & paste some text -- it is not the problem for displaying bookmarks in Konqueror (1 line) but apparently for editor only.
Comment 6 David Faure 2009-11-18 02:29:41 UTC
Qt4 actually renders this correctly, the bookmark item is much higher than others. Looks funny, but not buggy.

Well, maybe newlines should be converted to spaces though...
Comment 7 David Faure 2009-11-18 02:38:37 UTC
SVN commit 1050745 by dfaure:

Turn \n into space, otherwise you end up with an item that is much higher than others in keditbookmarks :-)
Fixed for: 4.4.0
BUG: 140673


 M  +3 -1      kbookmark.cc  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1050745