mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -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))
|
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':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user