mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-07 09:01:38 -04:00
Fix #1681 (Error convertin to MOBI)
This commit is contained in:
commit
38949adec0
@ -277,7 +277,10 @@ class Style(object):
|
|||||||
def _apply_style_attr(self):
|
def _apply_style_attr(self):
|
||||||
attrib = self._element.attrib
|
attrib = self._element.attrib
|
||||||
if 'style' in attrib:
|
if 'style' in attrib:
|
||||||
style = CSSStyleDeclaration(attrib['style'])
|
css = attrib['style'].strip()
|
||||||
|
if css.startswith(';'):
|
||||||
|
css = css[1:]
|
||||||
|
style = CSSStyleDeclaration(css)
|
||||||
self._style.update(self._stylizer.flatten_style(style))
|
self._style.update(self._stylizer.flatten_style(style))
|
||||||
|
|
||||||
def _has_parent(self):
|
def _has_parent(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user