Bug 139503 - Yahoo chat shows <br/> instead of newline(s)
Summary: Yahoo chat shows <br/> instead of newline(s)
Status: RESOLVED FIXED
Alias: None
Product: kopete
Classification: Applications
Component: Yahoo Plugin (show other bugs)
Version: 0.12.3
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Kopete Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-02 13:30 UTC by Luigi Toscano
Modified: 2007-04-27 15:32 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 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;