Conversion pipeline: Respect width and height attributes ina ddiotion to width and height in CSS

This commit is contained in:
Kovid Goyal 2010-04-30 10:39:27 -06:00
parent 1fa22384c2
commit 4cc7d477a6

View File

@ -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']