multi-line input in a group chat will fail to post to the chat room. The current code changes
to
in the submission to the lync host. The correct change is to replace
with "\r\n". This can be accomplished by editing line 984 in sipe-groupchat.c from:
tmp = replace(what, "
", "
");
to:
tmp = replace(what, "
", "\r\n");
Recompile & it works
ahh html got hosed!
replace: tmp = replace(what, "<br>", "<br/>");
with: tmp = replace(what, "<br>", "\r\n");
on line 984 in sipe-groupchat.c
It's even worse...
According to [MS-XCCOSIP], section 2.2.2.9:
It seems that the server does some HTML filtering, but barfs on nested and single HTML tags, e.g.
<b><i>bold italic</i></b>multi line 1<br/>multi line 2with a really absurd error message:
Well done, Microsoft! SIPE will have to remove all HTML tags from the text before sending it to the server.
Preserving the formatting would require converting the HTML to RTF and vice versa. Unfortunately there seems to be no widely available open source library for this task :-(
Fixed by commit 93939bc