| Reference | Downloads | Github

Newline characters in conditions file

URL of experiment:

Description of the problem:
I have a conditions file (Instructions_3block_part1.xlsx) where one column contains text that will be displayed on the screen. If I include a newline character (/n) in one of the cells in this column, the Python version has the desired behavior and puts the following characters on the next line. But the JavaScript version displays the ā€œ/nā€ as if it were part of the display text. Is there a way for me to force these newline characters to be interpreted by psychoJS the same way they are interpreted by PsychoPy?

What happens if you type an actual new line inside your cell, rather than using the \n escape sequence? In Excel , you can type ALT + ENTER to get a new line within a cell.

1 Like

That did the trick - thank you!