Dear Otto,
I think \n leads to an error because the backslash is an escape character in javascript.
according to chatgpt
... when used in a
string, the \ expects to be followed by another character to form the escape sequence.
So \\n is needed in this case I suppose.
kind regards
ruth