mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 21:53:29 +02:00
Fix bug in parsing of padding
This commit is contained in:
parent
73cb8b8b83
commit
59de78af3e
1 changed files with 3 additions and 1 deletions
|
|
@ -992,7 +992,9 @@ def block_properties(self, tag_css):
|
|||
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…
Reference in a new issue