------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=121627
ogoffart kde org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
------- Additional Comments From ogoffart kde org 2006-03-31 16:44 -------
SVN commit 524990 by ogoffart:
Fix Bug 121627: Jabber plugin sends empty lines (or CRs ?) before and after a
message
Removes all \n that KTextEdit add for html indentation.
BUG: 121627
M +5 -1 jabberchatsession.cpp [UTF-8 ENCODING PROBLEMS]
--- branches/kopete/0.12/kopete/protocols/jabber/jabberchatsession.cpp
#524989:524990
@ -251,7 +251,11 @
JabberResource *bestResource =
account()->resourcePool()->bestJabberResource(toJid);
if( bestResource &&
bestResource->features().canXHTML() )
{
- jabberMessage.setXHTMLBody (
message.escapedBody(), QString::null, message.getHtmlStyleAttribute() );
+ jabberMessage.setXHTMLBody (
message.escapedBody().replace("\n","") , QString::null,
message.getHtmlStyleAttribute() );
+ // According to JEP-0071 �8.9 it is
only RECOMMANDED to replace \n with <br/>
+ // which mean that some implementation
may still think that \n are linebreak.
+ // and considered the fact that
KTextEditor generate a well indented XHTML, we need to remove all \n from it
+ // see Bug 121627
}
}
}
_______________________________________________
kopete-devel mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/kopete-devel