What is the advised way to insert line breaks in text variables? I have obviously tried \n (and also \r and <br/>), but for reasons entirely unknown to me these reduce the font size to something around 4.7
here's the code I tried
var player = GetPlayer(); var fb = player.GetVar("txtFeedbackAll"); var newFB = "some new feedback"; fb = newFB + "\n" + fb; player.SetVar("txtFeedbackAll",fb);
5 Replies
Try this: %0D%0A
For a double line break: %0D%0A%0D%0A
I have changed that one javascript line to
but now it only prints that %0D%0A on screen, so I see something like
some new feedback %0D%0A old feedback
Am I missing something obvious? Feeling really stupid now! I'm using Articulate360, by the way.
Can you share your file? It might be easier to fix directly in the source.
Thanks, Owen. Very helpful.
👍
This discussion is closed. You can start a new discussion or contact Articulate Support.