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