Millisecond Forums

Text on new line

https://forums.millisecond.com/Topic13444.aspx

By luca7 - 6/2/2014

Dear Inquisit users,
I would really appreciate your input on the following problem.

I’d like to show “Press 'y' for YES” and "Press 'n' for NO" on two lines, one above the other.

However, given:

<text ansKeyP>
/ items = ("Press 'y' for YES
Press 'n' for NO")
</text>

I don’t see those two separate lines, but I see one line that looks like this:
"Press 'y' for YESxxxPress 'n' for NO"
where "xxx" are meaningless symbols (like little squares).

This problem happens in one computer running Windows XP, but it doesn’t happen on another computer running Windows 7.

Any idea how to solve that problem so that the text is properly showed in different kind of computers and operative systems?

Thank you.
Best,
Luca
By Dave - 6/2/2014

#1: You *must* specify the respective <text> element's /size attribute for line breaks to work.
#2: You then must force the line break via a properly escaped special character (see the "Special Characters" topic in the documentation for details).

<text sometext>
/ items = someitems
/ size = (10%, 10%)
...
</text>

<item someitems>
/ 1 = "Line 1~nLine 2"
...
</item>

By luca7 - 6/2/2014

thank you so much, Dave! I really appreciate your help.
Using the attribute / size and the special characters within the text solved the problem. 

Best,
Luca