mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #263
This commit is contained in:
parent
82f089ec4b
commit
50114d70ce
@ -1638,8 +1638,8 @@ def process_file(path, options, logger=None):
|
||||
if options.header:
|
||||
header = Paragraph()
|
||||
fheader = options.headerformat
|
||||
fheader = re.sub(r'([^%]|^)%t', r'\1' + options.title, fheader)
|
||||
fheader = re.sub(r'([^%]|^)%a', r'\1' + options.author, fheader)
|
||||
fheader = re.sub(r'(?<!%)%t', options.title, fheader)
|
||||
fheader = re.sub(r'(?<!%)%a', 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