Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
calvaryftl
Visitor

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
Channel Surfer

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
Visitor

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
Visitor

Re: textScreen and line breaks

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

Thank you!
0 Kudos