Skip to content

Commit

Permalink
fix: #381
Browse files Browse the repository at this point in the history
Signed-off-by: yihong0618 <[email protected]>
  • Loading branch information
yihong0618 committed Feb 2, 2024
1 parent 0342c0b commit 79866d9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion book_maker/loader/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ def __init__(
self.context_flag = context_flag

def insert_trans(self, p, text, translation_style="", single_translate=False):
if text is None:
text = ""
if (
p.string is not None
and text is not None
and p.string.replace(" ", "").strip() == text.replace(" ", "").strip()
):
return
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
setup(
name="bbook_maker",
description="The bilingual_book_maker is an AI translation tool that uses ChatGPT to assist users in creating multi-language versions of epub/txt files and books.",
version="0.7.7",
version="0.7.8",
license="MIT",
author="yihong0618",
author_email="[email protected]",
Expand Down

0 comments on commit 79866d9

Please sign in to comment.