Textwrap commented
This commit is contained in:
parent
c14548b3d7
commit
2fd8a5bb07
1 changed files with 4 additions and 0 deletions
|
|
@ -232,6 +232,10 @@ def translateTxt(data, translatedList):
|
||||||
translatedText = re.sub(r'(?<!\\)"', r'\\"', translatedText)
|
translatedText = re.sub(r'(?<!\\)"', r'\\"', translatedText)
|
||||||
translatedText = re.sub(r"(?<!\\)'", r"\\'", translatedText)
|
translatedText = re.sub(r"(?<!\\)'", r"\\'", translatedText)
|
||||||
|
|
||||||
|
# # Textwrap
|
||||||
|
# translatedText = textwrap.fill(translatedText, width=WIDTH)
|
||||||
|
# translatedText = translatedText.replace("\n", "\\n")
|
||||||
|
|
||||||
# Set Data
|
# Set Data
|
||||||
data[i] = f"{translatedText}\n"
|
data[i] = f"{translatedText}\n"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue