From 074050099125bcfd312ffed96cab29e93a442520 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 19 Apr 2014 21:07:23 +0530 Subject: [PATCH] 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) --- src/calibre/ebooks/oeb/polish/spell.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/ebooks/oeb/polish/spell.py b/src/calibre/ebooks/oeb/polish/spell.py index 859c78cfdc..811d405dd0 100644 --- a/src/calibre/ebooks/oeb/polish/spell.py +++ b/src/calibre/ebooks/oeb/polish/spell.py @@ -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 = {}