mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -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:
|
||||
last.tail = text
|
||||
else:
|
||||
child = etree.Element(XHTML('span'), attrib=attrib)
|
||||
child = elem.makeelement(XHTML('span'), attrib=attrib)
|
||||
child.text = text.upper()
|
||||
if last is None:
|
||||
elem.insert(0, child)
|
||||
|
Loading…
x
Reference in New Issue
Block a user