mirror of
https://github.com/yihong0618/bilingual_book_maker.git
synced 2025-06-06 11:35:49 +00:00
fix --accumulated_num logic
This commit is contained in:
parent
d6e978c03d
commit
6195ede713
@ -214,6 +214,8 @@ class EPUBBookLoader(BaseBookLoader):
|
||||
or is_figure(temp_p.text)
|
||||
or is_tail_Link(temp_p.text)
|
||||
):
|
||||
if i == len(p_list) - 1:
|
||||
self.helper.deal_old(wait_p_list)
|
||||
continue
|
||||
length = num_tokens_from_text(temp_p.text)
|
||||
if length > send_num:
|
||||
|
Loading…
x
Reference in New Issue
Block a user