mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix bug in parsing of padding
This commit is contained in:
parent
73cb8b8b83
commit
59de78af3e
@ -992,7 +992,9 @@ class HTMLConverter(object):
|
||||
t['topskip'], t['footskip'], t['sidemargin'] = src[0], src[2], src[3]
|
||||
for key in ('topskip', 'footskip', 'sidemargin'):
|
||||
if t[key] is not None:
|
||||
ans[key] = self.unit_convert(t[key])
|
||||
val = self.unit_convert(t[key])
|
||||
if val is not None:
|
||||
ans[key] = val
|
||||
|
||||
return ans
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user