fix 空格问题

This commit is contained in:
Clivia
2024-09-14 16:13:29 +08:00
parent e82ffcc912
commit ba26e9c49a

View File

@@ -1443,10 +1443,10 @@ def data_fetcher(upstream_response, data_queue, stop_event, last_data_time, api_
else:
# 只获取新的 parts
parts = content.get("parts", [])
full_text = ''.join(parts)
if full_text == "![":
full_text = ''.join(parts)
if full_text == "![":
last_full_text = "!"
new_text = full_text[len(last_full_text):]
new_text = full_text[len(last_full_text):]
last_full_text = full_text
if "\u3010" in new_text and not citation_accumulating:
citation_accumulating = True