This commit is contained in:
Kovid Goyal 2008-03-13 00:14:56 +00:00
parent 57ef70e274
commit 7a74683da2

View File

@ -1235,7 +1235,7 @@ class HTMLConverter(object):
unit = float(m.group(1)) unit = float(m.group(1))
if m.group(2) == '%': if m.group(2) == '%':
normal = self.unit_convert(base_length) normal = self.unit_convert(base_length)
result = int((unit/100.0)*normal) result = (unit/100.0) * normal
elif m.group(2) == 'px': elif m.group(2) == 'px':
result = unit result = unit
elif m.group(2) == 'in': elif m.group(2) == 'in':