TextBox.setText remove the "\n"

55 views
Skip to first unread message

tong123123

unread,
Sep 20, 2012, 5:16:21 AM9/20/12
to google-we...@googlegroups.com
as shown in attached ContetWithReturnKey1.png, the content has "\n" before setText (content\ncontent), but after setText and then getText() again, the "\n" is disappear(contentcontent)!!
How to fix this issue?
ContentWithReturnKey1.png
ContentWithReturnKey2.png

Paul Robinson

unread,
Sep 20, 2012, 7:37:39 AM9/20/12
to google-we...@googlegroups.com
TextBox is for single line text. Use TextArea for multiline text.

Joseph Lust

unread,
Sep 20, 2012, 5:56:39 PM9/20/12
to google-we...@googlegroups.com
Add <br> if you want line returns in regular HTML components.
Reply all
Reply to author
Forward
0 new messages