PennController for IBEX › Forums › Support › Pre-determined line breaks in self-paced reading experiment › Reply To: Pre-determined line breaks in self-paced reading experiment
February 11, 2023 at 1:44 pm
#9920
Jeremy
Keymaster
Hello,
The DashedSentence controller does accept the \n
character as a linebreak, but when looking up the table Template
reads that sequence as two characters (\
+n
) which in a javascript string you would write as \\n
The solution is to replace all occurrences of \\n
with \n
s: row.acceptability.replace(/\\n/g,"\n")
Jeremy