mirror of
https://github.com/yihong0618/bilingual_book_maker.git
synced 2025-06-06 11:35:49 +00:00
parent
79796456c3
commit
5a8cbf496f
@ -247,6 +247,9 @@ class ChatGPTAPI(Base):
|
||||
new_lines.append(" ".join(temp_line))
|
||||
|
||||
text = "\n".join(new_lines)
|
||||
# try to fix #372
|
||||
if not text:
|
||||
return ""
|
||||
|
||||
# del ^M
|
||||
text = text.replace("^M", "\r")
|
||||
|
Loading…
x
Reference in New Issue
Block a user