Fix processing of --margin-x options for LRF output

This commit is contained in:
Kovid Goyal 2009-06-25 09:02:56 -07:00
parent 87e78c48e3
commit e65d1325f8

View File

@ -58,8 +58,8 @@ class LRFOptions(object):
for x in ('top', 'bottom', 'left', 'right'): for x in ('top', 'bottom', 'left', 'right'):
setattr(self, x+'_margin', (self.profile.dpi/72.) * getattr(opts, setattr(self, x+'_margin',
'margin_'+x)) (self.profile.dpi/72.) * float(getattr(opts, 'margin_'+x)))
for x in ('wordspace', 'header', 'header_format', for x in ('wordspace', 'header', 'header_format',
'minimum_indent', 'serif_family', 'minimum_indent', 'serif_family',