mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Conversion pipeline: Respect width and height attributes ina ddiotion to width and height in CSS
This commit is contained in:
parent
1fa22384c2
commit
4cc7d477a6
@ -528,7 +528,7 @@ class Style(object):
|
||||
base = parent.width
|
||||
else:
|
||||
base = self._profile.width
|
||||
if 'width' is self._element.attrib:
|
||||
if 'width' in self._element.attrib:
|
||||
width = self._element.attrib['width']
|
||||
elif 'width' in self._style:
|
||||
width = self._style['width']
|
||||
@ -551,7 +551,7 @@ class Style(object):
|
||||
base = parent.height
|
||||
else:
|
||||
base = self._profile.height
|
||||
if 'height' is self._element.attrib:
|
||||
if 'height' in self._element.attrib:
|
||||
height = self._element.attrib['height']
|
||||
elif 'height' in self._style:
|
||||
height = self._style['height']
|
||||
|
Loading…
x
Reference in New Issue
Block a user