[Konversation-devel] [Bug 270376] New: multiple space are eaten with irc rich text
Bernd Buschinski
b.buschinski at web.de
Thu Apr 7 23:15:53 CEST 2011
https://bugs.kde.org/show_bug.cgi?id=270376
Summary: multiple space are eaten with irc rich text
Product: konversation
Version: Git
Platform: Gentoo Packages
OS/Version: Linux
Status: NEW
Severity: normal
Priority: NOR
Component: ircview
AssignedTo: argonel at gmail.com
ReportedBy: b.buschinski at web.de
CC: konversation-devel at kde.org
Version: Git (using KDE 4.6.2)
OS: Linux
For the follwing examples I am going to ignore the rich text effect.
If you write text like
"test %C09 test"
it will be shown as
"test test"
with just one space.
The text is correctly generated and passed to KTextBrowser as
"test <font color="#00ff00"> test</font>"
(still 2 spaces)
This behavior seems to be known, as there is a "workaround" in
ircview.cpp line 1089
// Replace a pair of spaces with "<space> " to preserve some semblance
of text wrapping.
filteredLine.replace(" ", " \xA0");
but "test %C09 test" is not pair of spaces, so it does not apply.
And as the comment says replacing all spaces does not work as it would break
text wrapping.
NOTE: this happens with all irc richtext chars, bold, italic, underlined...
NOTE2: this also happens with konv 1.2.3
Reproducible: Always
--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the Konversation-devel
mailing list