Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
calvaryftl
Level 7

textScreen and line breaks

What is the proper way to indicate new paragraphs in the textScreen? I am bringing in the text via json, and currently have \\n, but that shows on screen as \n. I'm sure it's a simple answer, I just can't find it anywhere....

Kenny
0 Kudos
3 REPLIES 3\
TheEndless
Level 9

Re: textScreen and line breaks

Have you tried just a \n in the JSON instead of \\n? If that doesn't work (I suspect it will), you can replace the \n's with Chr(10)'s.
My Channels: http://roku.permanence.com - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
0 Kudos
calvaryftl
Level 7

Re: textScreen and line breaks

Ah... will try that. I read somewhere that it needed to be escaped in json with the double slash....
0 Kudos
calvaryftl
Level 7

Re: textScreen and line breaks

That did it. So much for believing everything you read online. Smiley LOL

Thank you!
0 Kudos