[kopete-bugs] [Bug 175532] New: Outgoing AIM (OSCAR) messages have HTML line break tag (<BR>) prepended

Dustin Marquess dmarquess at gmail.com
Wed Nov 19 00:07:32 CET 2008


http://bugs.kde.org/show_bug.cgi?id=175532

           Summary: Outgoing AIM (OSCAR) messages have HTML line break tag
                    (<BR>) prepended
           Product: kopete
           Version: unspecified
          Platform: SuSE RPMs
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: kopete-bugs at kde.org
        ReportedBy: dmarquess at gmail.com


Version:           0.60.80 (using KDE 4.1.3)
Compiler:          gcc 4.3.2 
OS:                Linux
Installed from:    SuSE RPMs

When sending messages in Kopete to AIM users, all outgoing messages have a HTML
line break (<BR>) prepended.  This shows up as a empty blank line on the
receiving side.  Confirmed <BR> is sent using strace.  <BR> is sent on both
using the Enter/Return key to send and also clicking the 'Send' button.  Only
kopete plugins enabled are History & OTR.

Originally noticed in openSUSE 11.1 Beta 5 & KDE 4.1.3.  Reproduced in openSUSE
Factory & KDE4:UNSTABLE (KDE-4.1.73).

I'm not sure what the proper fix is, but the following patch appears to work
around the problem:

--- kopete/protocols/oscar/aimcontactbase.cpp   2008-10-30 09:17:58.000000000
-0500
+++ kopete/protocols/oscar/aimcontactbase.cpp   2008-11-18 14:58:49.141797950
-0600
@@ -164,6 +164,9 @@
        if ( s.endsWith( "<BR>" ) )
                s.chop(4);

+       if ( s.startsWith( "<BR>" ) )
+               s.remove(0,4);
+
        if ( hasFontTag )
                s += "</FONT>";
        if ( defaultCharFormat.font().bold() )


-- 
Configure bugmail: http://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the kopete-bugs mailing list