So would it look like this when the capability is in the next version?
Code:
mport re
def replace(match, number, file_name, metadata, dictionaries, data, functions, *args, **kwargs):
section_number = '%d. ' % number
replace.file_order = 'spine'
return match.group(1) + 'Chapter ' + section_number + re.sub(r'^Chapter \d+\. ', '', match.group(2))
Great stuff -- thanks