Fix header handling

This commit is contained in:
Kovid Goyal 2007-05-26 16:20:26 +00:00
parent acd5775987
commit 343626751e
2 changed files with 2 additions and 4 deletions

View File

@ -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

View File

@ -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('$')