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:
Kovid Goyal 2014-04-19 21:07:23 +05:30
parent e7a279e1c4
commit 0740500991

View File

@ -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 = {}