mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Spell check: Fix language declarations not being respected for nested tags. Fixes #1310000 [Language recognition fails in editor with nested tags](https://bugs.launchpad.net/calibre/+bug/1310000)
This commit is contained in:
parent
e7a279e1c4
commit
0740500991
@ -128,7 +128,7 @@ def read_words_from_html(root, words, file_name, book_locale):
|
||||
parent, parent_locale = stack.pop()
|
||||
locale = locale_from_tag(parent) or parent_locale
|
||||
read_words_from_html_tag(parent, words, file_name, parent_locale, locale)
|
||||
stack.extend((tag, parent_locale) for tag in parent.iterchildren('*'))
|
||||
stack.extend((tag, locale) for tag in parent.iterchildren('*'))
|
||||
|
||||
def group_sort(locations):
|
||||
order = {}
|
||||
|
Loading…
x
Reference in New Issue
Block a user