From 73bece5c402e96ba97f2c3e4a9b223b46c38b537 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 17 Dec 2011 08:48:36 +0530 Subject: [PATCH] Fix unsmarten punctuation conversion option broken in 0.8.31. Fixes #905596 (0.8.31 Upgrade: Convert Books Error) --- src/calibre/ebooks/oeb/transforms/unsmarten.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/ebooks/oeb/transforms/unsmarten.py b/src/calibre/ebooks/oeb/transforms/unsmarten.py index c01094681f..05f0fd59ca 100644 --- a/src/calibre/ebooks/oeb/transforms/unsmarten.py +++ b/src/calibre/ebooks/oeb/transforms/unsmarten.py @@ -16,7 +16,7 @@ class UnsmartenPunctuation(object): def unsmarten(self, root): for x in self.html_tags(root): - if not barename(x) == 'pre': + if not barename(x.tag) == 'pre': if getattr(x, 'text', None): x.text = unsmarten_text(x.text) if getattr(x, 'tail', None) and x.tail: