actually \n needs to be escaped
This commit is contained in:
parent
365231a486
commit
c341f6dfb5
1 changed files with 1 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue