Forum Archive

Newline in textview

robertiii

How would I convert “
” to a newline in a textview? Also how would I convert when a user enters a return to “
”?

JonB

a newline is '\n'. str.replace should work for this.
Why not post a simple example of what you've tried, and where you are getting stuck...

robertiii

I was using a forward slash instead of backslash