mvmz | fix cutting off on newlines for already translated lines.

This commit is contained in:
no 2025-11-25 22:15:29 +02:00
parent e3299fe4ef
commit 3ecaf84bff

View file

@ -1759,7 +1759,7 @@ def searchCodes(page, pbar, jobList, filename):
# Replace Speaker
if len(speakerList) != 0:
# Check if speaker+dialogue are on same line (【speaker】dialogue)
sameLineMatch = re.match(r"^\s*【([^】]+)】(.+)", jaString)
sameLineMatch = re.match(r"^\s*【([^】]+)】(.+)", jaString, re.DOTALL)
if sameLineMatch and len(speakerList) == 1:
# Translate speaker