Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Text new line issue

ANSWERED

in my index.js file I have made a reference to my text in my index.view, SpeechBox, and I'm trying to change the text of the element with the JavaScript, SpeechBox.text = "some text" and I'm trying to use the new line, \n, but whenever I do it shows up as some weird character on my versa 3 and doesn't go onto a new line

 

image of what i mean (what is shown on versa 3)

the code

 

I apologise if it is hard to understand what I'm asking here, I'm really bad at explaining things 

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

Ensure that you're using <textarea> rather than <text>. Even so, I've had problems with \n

Peter McLennan
Gondwana Software

View best answer in original post

Best Answer
2 REPLIES 2

Ensure that you're using <textarea> rather than <text>. Even so, I've had problems with \n

Peter McLennan
Gondwana Software
Best Answer

Hi @Itsbailey - try using "&#10;" in place of "\n". Works in some places.

Author | ch, passion for improvement.

Best Answer
0 Votes