mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 03:23:47 +02:00
Conversion pipeline: When setting margins on <body> explicitly set padding to 0 to override and existing padding in the input document
This commit is contained in:
parent
fb053fe3f3
commit
ba5de1c92d
1 changed files with 1 additions and 0 deletions
|
|
@ -138,6 +138,7 @@ def stylize_spine(self):
|
|||
float(self.context.margin_left))
|
||||
bs.append('margin-right : %fpt'%\
|
||||
float(self.context.margin_right))
|
||||
bs.extend(['padding-left: 0pt', 'padding-right: 0pt'])
|
||||
if self.context.change_justification != 'original':
|
||||
bs.append('text-align: '+ self.context.change_justification)
|
||||
body.set('style', '; '.join(bs))
|
||||
|
|
|
|||
Loading…
Reference in a new issue