Bug 139503

Summary: Yahoo chat shows <br/> instead of newline(s)
Product: [Applications] kopete Reporter: Luigi Toscano <luigi.toscano>
Component: Yahoo PluginAssignee: Kopete Developers <kopete-bugs-null>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 0.12.3   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

Description Luigi Toscano 2007-01-02 13:30:23 UTC
Version:           0.12.3 (using KDE 3.5.5, Debian Package 4:3.5.5a.dfsg.1-5 (4.0))
Compiler:          Target: i486-linux-gnu
OS:                Linux (i686) release 2.6.18-3-686

When I send a multiline message, such as

 Hi
 How are you?

it will be displayed as

 Hi<br />How are you?

in the chat window of the other person.

I tested it between two kopete clients.
Comment 1 Andre Duffeck 2007-04-27 15:32:13 UTC
SVN commit 658500 by duffeck:

Fix linebreaks, showing up as <br/>
BUG:139503


 M  +1 -0      yahoocontact.cpp  


--- branches/KDE/3.5/kdenetwork/kopete/protocols/yahoo/yahoocontact.cpp #658499:658500
@@ -308,6 +308,7 @@
 	newMsg.replace( QString::fromLatin1( "&quot;" ), QString::fromLatin1( "\"" ) );
 	newMsg.replace( QString::fromLatin1( "&nbsp;" ), QString::fromLatin1( " " ) );
 	newMsg.replace( QString::fromLatin1( "&amp;" ), QString::fromLatin1( "&" ) );
+	newMsg.replace( QString::fromLatin1( "<br />" ), QString::fromLatin1( "\r" ) );
 	newMsg.replace( QString::fromLatin1( "<br/>" ), QString::fromLatin1( "\r" ) );
 	
 	return newMsg;