From 94e2db14f38a858c57148af2a55932f7e688cf57 Mon Sep 17 00:00:00 2001 From: Miodec Date: Mon, 18 Jan 2021 16:58:54 +0000 Subject: [PATCH] fixed new line and tabs not parsing properly --- src/js/script.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/js/script.js b/src/js/script.js index 75ab1e415..72b36c3d2 100644 --- a/src/js/script.js +++ b/src/js/script.js @@ -4069,6 +4069,8 @@ $("#customTextPopup .button").click(() => { // text = text.replace(/[\r]/gm, " "); text = text.replace(/\\\\t/gm, "\t"); text = text.replace(/\\\\n/gm, "\n"); + text = text.replace(/\\t/gm, "\t"); + text = text.replace(/\\n/gm, "\n"); text = text.replace(/ +/gm, " "); // text = text.replace(/(\r\n)+/g, "\r\n"); // text = text.replace(/(\n)+/g, "\n");