mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
re-merge from launchpad
This commit is contained in:
commit
42708dbe36
@ -462,10 +462,8 @@ class HeuristicProcessor(object):
|
|||||||
top_margin = ''
|
top_margin = ''
|
||||||
bottom_margin = ''
|
bottom_margin = ''
|
||||||
if initblanks is not None:
|
if initblanks is not None:
|
||||||
print "initial blanks are:\n"+initblanks
|
|
||||||
top_margin = 'margin-top:'+str(len(self.single_blank.findall(initblanks)))+'em;'
|
top_margin = 'margin-top:'+str(len(self.single_blank.findall(initblanks)))+'em;'
|
||||||
if endblanks is not None:
|
if endblanks is not None:
|
||||||
print "endblanks blanks are:\n"+endblanks
|
|
||||||
bottom_margin = 'margin-bottom:'+str(len(self.single_blank.findall(endblanks)))+'em;'
|
bottom_margin = 'margin-bottom:'+str(len(self.single_blank.findall(endblanks)))+'em;'
|
||||||
|
|
||||||
if initblanks == None and endblanks == None:
|
if initblanks == None and endblanks == None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user