Bug 155193 - Kopete Jabber users sends wrong additional new lines during chat
Summary: Kopete Jabber users sends wrong additional new lines during chat
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kopete
Classification: Applications
Component: Jabber Plugin (show other bugs)
Version: 0.12.7
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Kopete Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-06 18:35 UTC by Michał Z. Gołębiowski
Modified: 2010-01-17 15:52 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
How it looks in Gajim (46.08 KB, image/png)
2008-01-06 18:55 UTC, Michał Z. Gołębiowski
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Z. Gołębiowski 2008-01-06 18:35:17 UTC
Version:           0.12.7 (using KDE KDE 3.5.8)
Installed from:    Ubuntu Packages
Compiler:          gcc (GCC) 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2) 
OS:                Linux

When a Jabber user uses Kopete they send messages having additional new line at the beginning and at the end of the message - it is so because it sends html - here is XML output when sending a message:

<body>MESSAGE_TEXT</body>
<html xmlns='http://jabber.org/protocol/xhtml-im'>
<body xmlns='http://www.w3.org/1999/xhtml'>
<p style=''>MESSAGE_TEXT<br/>
</p>
</body>
</html>
<active xmlns='http://jabber.org/protocol/chatstates'/>
<x xmlns='jabber:x:event'>
<offline/>
<composing/>
<delivered/>
<displayed/>
</x>
</message>

I think the problem is produced by these lines:

<html xmlns='http://jabber.org/protocol/xhtml-im'>
<body xmlns='http://www.w3.org/1999/xhtml'>
<p style=''>MESSAGE_TEXT<br/>
</p>
</body>
</html>

Message is sent within new paragraph (<p>) and has inside a </br> entry. It is really very annoying, especially when You use Gajim or Pidgin to communicate with Kopete user.
Comment 1 Michał Z. Gołębiowski 2008-01-06 18:55:12 UTC
Created attachment 22871 [details]
How it looks in Gajim

In this picture one can see how these additional lines produced by Kopete looks
in Gajim.
Comment 2 Thomas Nichols 2008-01-29 22:34:47 UTC
Confirmed when receiving Jabber messages from Kopete 3.5.7 (two machines tested, both on Gentoo) to Windows Psi 0.11.

Bug also noted by Adium developers: http://trac.adiumx.com/ticket/3050

Workaround: follefuder on #kopete reports that using OTR for encryption (and possibly also GPG) removes the extra newlines (understandable if this encryption forces output to be text rather than html).


Comment 3 oldherl 2008-05-19 14:01:29 UTC
Confirmed when receiving Jabber messages from Kopete 0.12.7 (KDE 3.5.9) on openSUSE 10.3 to Pidgin 2.4.1 on Ubuntu 8.04.
It is logged as below on Pidgin:
    (19:31:28)      DarkRaven:      What client are you using? It has a bug.
    (19:32:02)      DarkRaven:      There is an extra new line after every sentence.- -
Don't say you typed that.- -
    (19:33:10)        oldherl:        I'm using Kopete
   
    (19:33:26)        oldherl:        How does it look like?
Comment 4 Hrishikesh Mehendale (हृषीकेश मेहेंदळे) 2009-03-20 19:52:57 UTC
I'm having a two-way problem:

If a message is sent from Kopete -> Pidgin / Adium / Yahoo Messenger (official), there's an extra newline after every message

If someone on Pidgin (I've not confirmed with other clients) sends me a multi-line message, Kopete shows it all on a single line.
Comment 5 Roman Jarosz 2010-01-17 15:52:18 UTC
Please update to newer version as we don't have manpower to support Kopete in
KDE 3. If you still see this bug in new version please reopen this bug report.