Fixing inlines

This commit is contained in:
dazedanon 2026-03-08 17:56:25 -05:00
parent 0a8786add6
commit b5762fbfd3

View file

@ -1840,11 +1840,11 @@ def searchCodes(page, pbar, jobList, filename):
speaker = response[0]
totalTokens[0] += response[1][0]
totalTokens[1] += response[1][1]
# Remove speaker name and opening 「 from jaString; strip trailing 」 too
jaString = re.sub(r"\s*$", "", inlineQuoteMatch.group(2))
# Format as [Speaker]: for output
# Remove speaker name from jaString, preserve 「...」 for standard quote conversion
jaString = "" + inlineQuoteMatch.group(2)
# Format as [Speaker]\n for output
if not setData:
nametag = f"[{speaker}]: " + nametag
nametag = f"[{speaker}]\n" + nametag
# Don't skip to next line - continue with current line
elif codeList[i + 1]["code"] in [401, 405, -1]:
# Original behavior: speaker on its own line, dialogue on next line