Fix bug in parsing of padding

This commit is contained in:
Kovid Goyal 2007-10-27 20:18:28 +00:00
parent 73cb8b8b83
commit 59de78af3e

View File

@ -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