mirror of
https://github.com/yihong0618/bilingual_book_maker.git
synced 2025-06-06 11:35:49 +00:00
parent
3b731efc21
commit
1c88611f09
@ -14,6 +14,7 @@ class EPUBBookLoaderHelper:
|
|||||||
def insert_trans(self, p, text, translation_style="", single_translate=False):
|
def insert_trans(self, p, text, translation_style="", single_translate=False):
|
||||||
if (
|
if (
|
||||||
p.string is not None
|
p.string is not None
|
||||||
|
and text is not None
|
||||||
and p.string.replace(" ", "").strip() == text.replace(" ", "").strip()
|
and p.string.replace(" ", "").strip() == text.replace(" ", "").strip()
|
||||||
):
|
):
|
||||||
return
|
return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user