powered by Jive Software

Message body with newlines?

I’‘d like to send messages with Smack that contain newlines but the messages are truncated to the first line (I’'ve tried iChat and Adium clients to receive the messages). Is this even possible with jabber/smack?



How are you inserting the newline?

What character do you think is representing the newline?

What type of compoenent are you using to compose your text to send to the other client?

Are you sending plain text or XHTML?


I am using:


to send a message via a GoogleTalkConnection object. My newlines are just newline (\n) characters.



The clients you are using may not be using simple text components to display their messages. So \n my not have the meaning you intend.

Most of the IM clients are psuedo-HTML renderers.