From c341f6dfb5c2fd96c611c87a5d717a9c365d7a4f Mon Sep 17 00:00:00 2001 From: dazedanon Date: Wed, 21 Jan 2026 11:36:13 -0600 Subject: [PATCH] actually \n needs to be escaped --- modules/regex.py | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/regex.py b/modules/regex.py index 2646902..416e265 100644 --- a/modules/regex.py +++ b/modules/regex.py @@ -293,6 +293,7 @@ def translateRegex(data, filename, translatedList): # Textwrap translatedText = dazedwrap.wrapText(translatedText, width=WIDTH) + translatedText = translatedText.replace('\n', '\\n') # Set data[i] = data[i].replace(match.group(1), translatedText)