mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-05 08:40:13 -04:00
Fix bug in generation of header string.
This commit is contained in:
parent
478aa4259d
commit
1bffc5a8cf
@ -1466,8 +1466,8 @@ def process_file(path, options, logger=None):
|
||||
if options.header:
|
||||
header = Paragraph()
|
||||
fheader = options.headerformat
|
||||
fheader = re.sub(r'([^%]|^)%t','\1' + options.title, fheader)
|
||||
fheader = re.sub(r'([^%]|^)%a','\1' + options.author, fheader)
|
||||
fheader = re.sub(r'([^%]|^)%t', r'\1' + options.title, fheader)
|
||||
fheader = re.sub(r'([^%]|^)%a', r'\1' + options.author, fheader)
|
||||
fheader = re.sub(r'%%a','%a',fheader)
|
||||
fheader = re.sub(r'%%t','%t',fheader)
|
||||
header.append(fheader + " ")
|
||||
|
Loading…
x
Reference in New Issue
Block a user