mirror of
https://github.com/psychopy/psychojs.git
synced 2025-05-11 16:18:10 +00:00
data/TrialHandler: allow for doubly escaped LFs in xlsx cells
This commit is contained in:
parent
cf0f2191f1
commit
baa17d9e95
@ -486,6 +486,12 @@ export class TrialHandler extends PsychObject
|
||||
value = Number.parseFloat(value);
|
||||
}
|
||||
|
||||
// Parse doubly escaped line feeds
|
||||
if (typeof value === 'string')
|
||||
{
|
||||
value = value.replace(/(\\n)/g, '\n');
|
||||
}
|
||||
|
||||
trial[fields[l]] = value;
|
||||
}
|
||||
trialList[r] = trial;
|
||||
|
Loading…
Reference in New Issue
Block a user