1
0
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:
Sotiri Bakagiannis 2021-01-08 16:51:11 +00:00
parent cf0f2191f1
commit baa17d9e95

View File

@ -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;