mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
5a63ba851f
commit
a9d053f5c1
@ -162,7 +162,7 @@ def mark_sentences_in_html(root, lang: str = '') -> list[Sentence]:
|
||||
return True
|
||||
return False
|
||||
|
||||
root_lang = lang_for_elem(root, canonicalize_lang(lang or get_lang()))
|
||||
root_lang = lang_for_elem(root, canonicalize_lang(lang or get_lang())) or 'eng'
|
||||
seen_ids = set(root.xpath('//*/@id'))
|
||||
id_counter = 1
|
||||
ans = []
|
||||
|
Loading…
x
Reference in New Issue
Block a user