Summary: | Highlight when using graphical emoticons | ||
---|---|---|---|
Product: | [Applications] konversation | Reporter: | kde |
Component: | general | Assignee: | Konversation Developers <konversation-devel> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | 1.2.3 | ||
Target Milestone: | --- | ||
Platform: | openSUSE | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
kde
2010-03-22 15:44:46 UTC
commit ee5e815f9fe99b88cb9e4a005e4db36fedb8fbb2 Author: Peter Simonsson <peter.simonsson@gmail.com> Date: Fri Jul 16 23:08:06 2010 +0200 Move emoticon parsing after highlight parsing to avoid false highlights BUG:231785 diff --git a/src/viewer/ircview.cpp b/src/viewer/ircview.cpp index 86f8abf..13a0d77 100644 --- a/src/viewer/ircview.cpp +++ b/src/viewer/ircview.cpp @@ -1145,8 +1145,6 @@ bool doHighlight, bool parseURL, bool self) filteredLine.replace("\x0b", "&"); } - filteredLine = Konversation::Emoticons::parseEmoticons(filteredLine); - // Highlight QString ownNick; @@ -1245,6 +1243,8 @@ bool doHighlight, bool parseURL, bool self) "\">" + filteredLine + "</font>"; } + filteredLine = Konversation::Emoticons::parseEmoticons(filteredLine); + // Replace pairs of spaces with "<space> " to preserve some semblance of text wrapping filteredLine.replace(" "," \xA0"); return filteredLine; |