Line breaks in Variables

timk
timk Community Member Posts: 1,214 ♦ Idol ♦
Hi community,



I want to change the content of a textfield with a the value of variable. The value of the variable is e.g. "This is line 1 this is line 2". To have it look correctly I need a line break after "line 1" so the second part of the phrase is in the next line.



Is it possible to insert a line break into the variable?



Something like: "This is line 1 (br /> this is line 2" (doesn't work)



or:"This is line 1 n this is line 2" (doesn't work)



Thanks

Tim

Comments

  • loraguardtree
    loraguardtree Community Member, Lectora® Accessibility Group (LAUG) Member, eLearning Brothers® Partner Posts: 1 ☆ Roadie ☆
    Did you figure this out, Tim?
  • timk
    timk Community Member Posts: 1,214 ♦ Idol ♦
    "\r" will do a line break, e.g. "This is line 1 \r this is line 2"

    Although back in 2011 you couldn't use the return key to insert breaks.
  • andrew-robertson
    andrew-robertson Community Member Posts: 225 ☆ Superstar ☆
    Beauty - thanks for the tidbit of information @timk
    Andrew R.
    Developing content since 2010 using a mixed bag of tools.