Due to a bug in the Tumblr theme editor, any time the sequence \n
appears in the source code, it is converted to an actual line break in the source code itself. Therefore, putting the \n
sequence into a Javascript string causes the program to crash, as it breaks the string into multiple lines.
I was wondering if there is another way to notate the newline character in JavaScript, which could allow me to work around this issue.
\\n
as a first workaround. I don't know if it will help or not in this case. – Bouton