mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-31 14:33:54 -04:00
MOBI Output: Fix a regression causing a crash for some input documents that specify text-transform or font-variant CSS properties. Fixes #1711776 [Private bug](https://bugs.launchpad.net/calibre/+bug/1711776)
This commit is contained in:
parent
d2a2da5f68
commit
e7ad535834
@ -82,7 +82,7 @@ class CaseMangler(object):
|
|||||||
else:
|
else:
|
||||||
last.tail = text
|
last.tail = text
|
||||||
else:
|
else:
|
||||||
child = etree.Element(XHTML('span'), attrib=attrib)
|
child = elem.makeelement(XHTML('span'), attrib=attrib)
|
||||||
child.text = text.upper()
|
child.text = text.upper()
|
||||||
if last is None:
|
if last is None:
|
||||||
elem.insert(0, child)
|
elem.insert(0, child)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user