Bug 80158 - When I type more than one space in a row, Kopete sends the characters "&nbsp".
Summary: When I type more than one space in a row, Kopete sends the characters "&nbsp".
Status: RESOLVED FIXED
Alias: None
Product: kopete
Classification: Applications
Component: ICQ and AIM Plugins (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Kopete Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-22 23:44 UTC by Jason Lewis
Modified: 2004-05-12 00:06 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jason Lewis 2004-04-22 23:44:37 UTC
Version:           .8.0 (using KDE KDE 3.2.2)
Installed from:    I Don't Know
OS:          Linux

If I type more than one space (for example, between sentences) Kopete sends the actual characters &nbsp rather then sending the space character.  I don't see the characters, but the recipient does.
Comment 1 Matt Rogers 2004-04-22 23:51:54 UTC
which protocol are you using to send the message?
Comment 2 Jason Lewis 2004-04-23 00:02:30 UTC
AIM.  I haven't yet tried the others.
Comment 3 Matt Rogers 2004-05-11 04:09:09 UTC
Well, I couldn't reproduce this sending kopete to gaim or kopete to AIM. I suppose that the person on the other side was using trillian?
Comment 4 Matt Rogers 2004-05-11 05:54:51 UTC
yup, they're using Trillian.
Comment 5 Matt Rogers 2004-05-11 06:22:23 UTC
I know a fix for this. 
Comment 6 Matt Rogers 2004-05-12 00:05:32 UTC
CVS commit by mattr: 

Replace the " " with a regular space so trillian doesn't display 
" " 

CCMAIL: 80158-done@bugs.kde.org
CCMAIL: 54433@bugs.kde.org


  M +1 -0      aimcontact.cpp   1.49


--- kdenetwork/kopete/protocols/oscar/aim/aimcontact.cpp  #1.48:1.49
@@ -295,4 +295,5 @@ void AIMContact::slotSendMsg(KopeteMessa
                 finalMessage += "</FONT>";
         finalMessage += "</BODY></HTML>";
+        finalMessage.replace("&nbsp;", " ");
 
         // ===================================================================================


Comment 7 Matt Rogers 2004-05-12 00:06:41 UTC
CVS commit by mattr: 

Backport the fix for 80158. Should be in KDE 3.2.3

CCMAIL: 80158@bugs.kde.org


  M +1 -0      aimcontact.cpp   1.43.4.1


--- kdenetwork/kopete/protocols/oscar/aim/aimcontact.cpp  #1.43:1.43.4.1
@@ -333,4 +333,5 @@ void AIMContact::slotSendMsg(KopeteMessa
                 finalMessage += "</FONT>";
         finalMessage += "</BODY></HTML>";
+        finalMessage.replace("&nbsp;", " ");
 
         // ===================================================================================