mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04: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
@ -16,7 +16,7 @@ class UnsmartenPunctuation(object):
|
|||||||
|
|
||||||
def unsmarten(self, root):
|
def unsmarten(self, root):
|
||||||
for x in self.html_tags(root):
|
for x in self.html_tags(root):
|
||||||
if not barename(x) == 'pre':
|
if not barename(x.tag) == 'pre':
|
||||||
if getattr(x, 'text', None):
|
if getattr(x, 'text', None):
|
||||||
x.text = unsmarten_text(x.text)
|
x.text = unsmarten_text(x.text)
|
||||||
if getattr(x, 'tail', None) and x.tail:
|
if getattr(x, 'tail', None) and x.tail:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user