twilio-labs / dev-phone

A developer tool for testing SMS and Voice applications
MIT License
77 stars 20 forks source link

Newlines in messages bodies not rendered #167

Open mjg123 opened 1 year ago

mjg123 commented 1 year ago

It seems like messages that include newlines are not rendered correctly in the UI.

Message as sent from Studio image

As shown on Dev Phone image

In this case the message is correctly shown on multiple lines in the messaging app on my phone so I think this is a bug in dev-phone.

Test Cases

Single newline The following should appear with newlines for inbound and outbound sms.

press 1 for sales
press 2 for customer service

Multiple newlines Asa sender and recipient of a text message, I expect that all newlines in the middle are preserved.

scroll to the bottom 

Press Y to opt-in
ayyrickay commented 1 year ago

The TextArea Component in Paste might be helpful here?