diff --git a/frontend/src/ts/modals/custom-text.ts b/frontend/src/ts/modals/custom-text.ts index 7fa628177..edc8da674 100644 --- a/frontend/src/ts/modals/custom-text.ts +++ b/frontend/src/ts/modals/custom-text.ts @@ -268,6 +268,7 @@ function cleanUpText(): string[] { if (state.replaceControlCharactersEnabled) { text = text.replace(/([^\\]|^)\\t/gm, "$1\t"); + text = text.replace(/\\n/g, " \n"); text = text.replace(/([^\\]|^)\\n/gm, "$1\n"); text = text.replace(/\\\\t/gm, "\\t"); text = text.replace(/\\\\n/gm, "\\n");