mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 21:24:57 +02:00
Fix unsmarten punctuation conversion option broken in 0.8.31. Fixes #905596 (0.8.31 Upgrade: Convert Books Error)
This commit is contained in:
parent
adf30396ec
commit
73bece5c40
1 changed files with 1 additions and 1 deletions
|
|
@ -16,7 +16,7 @@ def __init__(self):
|
|||
|
||||
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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue