Bug 247005

Summary: OTR plugins strips all formatting (HTML-tags) from messages
Product: [Unmaintained] kopete Reporter: meyerm
Component: OTR PluginAssignee: Kopete Developers <kopete-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: chrivers, thomasdn
Priority: NOR    
Version First Reported In: 1.0.0   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description meyerm 2010-08-07 18:31:29 UTC
Version:           1.0.0 (using KDE 4.4.5) 
OS:                Linux

Whenever the OTR-plugin is loaded, all formatting is stripped from the messages before beeing displayed locally. Since I don't use colors etc. it mainly affects newlines and sometimes tags beeing sent manually (to show sth.). My newlines are correctly sent and displayed on the other end with pidgin. Only receiving doesn't work. It makes reading a message with newlines as formatting element quite hard.

Reproducible: Always

Steps to Reproduce:
Load OTR-plugin.
Send sth. with a newline in it.

Actual Results:  
Everything in one line.

Expected Results:  
Each line beeing displayed on its own.

OS: Linux (x86_64) release 2.6.34-gentoo-r1
Compiler: x86_64-pc-linux-gnu-gcc
Comment 1 Thomas Damgaard 2010-11-23 11:42:41 UTC
I can comfirm this bug. It is extremely annoying. 

Please tell me how I can help debug or fix this.
Comment 2 meyerm 2010-11-23 12:26:47 UTC
I'm sorry for not beeing helpful for 4.4. But at least in KDE 4.5 it seems to be fixed.
Comment 3 Christian Iversen 2010-11-23 12:37:14 UTC
For people still using 4.4, you can use this trivial patch to fix the problem:

http://websvn.kde.org/branches/KDE/4.4/kdenetwork/kopete/plugins/otr/otrplugin.cpp?r1=1117326&r2=1117354

Another solution seems to be more flexible:

http://bugsfiles.kde.org/attachment.cgi?id=43379

(but I have not tried this)

There's a longer discussion here:

https://bugs.kde.org/show_bug.cgi?id=233330