mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-20 21:53:09 +02:00
Conversion pipeline: Fix crash caused by empty <style> elements. Fixes #775277 (Private bug)
This commit is contained in:
parent
f9dabe9140
commit
804c5d001f
1 changed files with 1 additions and 1 deletions
|
|
@ -216,7 +216,7 @@ def __init__(self, tree, path, oeb, opts, profile=None,
|
|||
if t:
|
||||
text += u'\n\n' + force_unicode(t, u'utf-8')
|
||||
if text:
|
||||
text = XHTML_CSS_NAMESPACE + elem.text
|
||||
text = XHTML_CSS_NAMESPACE + text
|
||||
text = oeb.css_preprocessor(text)
|
||||
stylesheet = parser.parseString(text, href=cssname)
|
||||
stylesheet.namespaces['h'] = XHTML_NS
|
||||
|
|
|
|||
Loading…
Reference in a new issue