blackberry/Ripple-Framework

/n character does not render a new line when displayed in Ripple emulator popup message

Opened this issue · 0 comments

This is a minor issue, but wanted to log it anyway for visibility.

Ripple should automatically replace any /n characters found with
when displaying text as part of confirmation messages for emulated behavior (such as the confirmation message displayed after emulating sending a SMS).

For example, the following code snippet

   var sPhone = "555 1234";
   var sMessage = "Hello, /n My current location is " + coords.latitude + ", " + coords.longitude;
   blackberry.message.sms.send(sMessage, sPhone);

To properly emulate the behavior of a real device, this message should display as
"Hello,
My current location is 43, 80"

However it is currently displaying as
"Hello /n My current location is 43, 80"