mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-30 23:00:21 -04:00
Fix header handling
This commit is contained in:
parent
acd5775987
commit
343626751e
@ -83,12 +83,10 @@ def Book(font_delta=0, header=None, profile=PRS500_PROFILE, **settings):
|
||||
textheight=profile.page_height)
|
||||
if header:
|
||||
hdr = Header()
|
||||
hb = TextBlock(textStyle=TextStyle(align='foot', fontsize=60),
|
||||
blockStyle=BlockStyle(sidemargin=10))
|
||||
hb = TextBlock(textStyle=TextStyle(align='foot', fontsize=60))
|
||||
hb.append(header)
|
||||
hdr.PutObj(hb)
|
||||
ps['headheight'] = 30
|
||||
ps['header'] = header
|
||||
ps['header'] = hdr
|
||||
ps['topmargin'] = 10
|
||||
baselineskip = (12 + 2*font_delta)*10
|
||||
|
@ -1160,7 +1160,7 @@ def process_file(path, options):
|
||||
header = Paragraph()
|
||||
header.append(Bold(options.title))
|
||||
header.append(' by ')
|
||||
header.append(Italic(options.author+" "))
|
||||
header.append(Italic(options.author+" "))
|
||||
book = Book(header=header, **args)
|
||||
le = re.compile(options.link_exclude) if options.link_exclude else \
|
||||
re.compile('$')
|
||||
|
Loading…
x
Reference in New Issue
Block a user