mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 20:35:18 +02:00
Fix #263
This commit is contained in:
parent
82f089ec4b
commit
50114d70ce
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Reference in a new issue