Bug 266556

Summary: Jabber messages ending with much spaces
Product: [Unmaintained] kopete Reporter: Sandro Knauß <sknauss>
Component: Jabber PluginAssignee: Kopete Developers <kopete-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: minor CC: rnet723
Priority: NOR    
Version First Reported In: 0.80.2   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Sandro Knauß 2011-02-17 20:06:57 UTC
Version:           0.80.2 (using KDE 1.2) 
OS:                Linux

While sending messages to a muc (Multi User Chat) via Jabber. Kopete puts much spaces on the end of the message.

Reproducible: Always

Steps to Reproduce:
1. open muc
2. open XML Console
3. send a message
4. look to XML Console

Actual Results:  
<message type="chat" to="xxx@xxx/xxx" id="519" >
<body>test 	  				 	 	 	   	 	  	   		  	 </body>
<x xmlns="jabber:x:event">
<offline/>
<composing/>
<delivered/>
<displayed/>
</x>
<active xmlns="http://jabber.org/protocol/chatstates"/>
</message>

Expected Results:  
<message type="chat" to="xxx@xxx/xxx" id="519" >
<body>test</body>
<x xmlns="jabber:x:event">
<offline/>
<composing/>
<delivered/>
<displayed/>
</x>
<active xmlns="http://jabber.org/protocol/chatstates"/>
</message>

Tried it with diffrent styles and also for rich text.
Comment 1 rnet723 2011-10-17 19:03:36 UTC
Reproduced the bug. KDE 4.7.2/Kopete 1.1.2 (openSUSE x86_64)
Comment 2 Sandro Knauß 2011-10-17 19:27:28 UTC
Sorry wrong versionnumbers: KDE  4.6.5/Kopete 1.0.80 (debian unstable)
Comment 3 Sandro Knauß 2014-12-12 23:42:15 UTC
This is the "whitespace hack" from OTR to show other clients, that this client support OTR. If otr is switched of completly (opperonistic mode). Than this issue is gone. So Actually it is a feature and not a bug :)