fix: try to fix #381

Signed-off-by: yihong0618 <zouzou0208@gmail.com>
This commit is contained in:
yihong0618 2024-02-02 21:04:39 +08:00
parent 3b731efc21
commit 1c88611f09

View File

@ -14,6 +14,7 @@ class EPUBBookLoaderHelper:
def insert_trans(self, p, text, translation_style="", single_translate=False):
if (
p.string is not None
and text is not None
and p.string.replace(" ", "").strip() == text.replace(" ", "").strip()
):
return