mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
Fix #572
This commit is contained in:
parent
57ef70e274
commit
7a74683da2
@ -1235,7 +1235,7 @@ class HTMLConverter(object):
|
||||
unit = float(m.group(1))
|
||||
if m.group(2) == '%':
|
||||
normal = self.unit_convert(base_length)
|
||||
result = int((unit/100.0)*normal)
|
||||
result = (unit/100.0) * normal
|
||||
elif m.group(2) == 'px':
|
||||
result = unit
|
||||
elif m.group(2) == 'in':
|
||||
|
Loading…
x
Reference in New Issue
Block a user