mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
Fix processing of --margin-x options for LRF output
This commit is contained in:
parent
87e78c48e3
commit
e65d1325f8
@ -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',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user