Reply To: Pre-determined line breaks in self-paced reading experiment

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

#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 \ns: row.acceptability.replace(/\\n/g,"\n")

Jeremy