I am using Appium to send messages through WhatsApp, but are facing some text formatting challenges while sending the messages, whereby some line breaks and spaces are removed when the message is parsed via Appium into the Whatsapp UI. The messages are sent with links and emoji’s using appium and Java, but line breaks and spaces are often (not always) removed while typing the message into the WhatsApp UI using “SendKey()” function.
I have set the Unicode keyboard capability to support the emoji’s and other languages like Arabic. The Appium version 1.6.4. is used here.
Has anyone else experienced issues with text formatting like this, when using Appium?
Below is the code snippet and screen shot of original message and phone message for more context:

Original Message (Example text):
Welcome to the test application.
This is test link 1
http://bit.ly/2Csqvqo
This is test link 2
http://bit.ly/2AvXqcj
This is test link 3
http://bit.ly/2jVAnkT_TESTING
This is test link 4
http://bit.ly/2j4jvHG
Thanks from the test application
Any help you can provide would be greatly appreciated. Thanks in Advance!