mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2026-05-08 21:11:59 +02:00
Fix origtitle/toctitle for mark_new_chapters. Broken in chapter metadata revamp.
This commit is contained in:
parent
d3b9315e91
commit
b888b846e4
1 changed files with 3 additions and 1 deletions
|
|
@ -1076,9 +1076,11 @@ class Story(Configurable):
|
|||
## used, but index is still included for backward
|
||||
## compatibility.
|
||||
chapter['index'] = chapter['number']
|
||||
chapter['chapter'] = chapter['title'] = usetempl.substitute(chapter)
|
||||
chapter['chapter'] = usetempl.substitute(chapter)
|
||||
chapter['origtitle'] = templ.substitute(chapter)
|
||||
chapter['toctitle'] = toctempl.substitute(chapter)
|
||||
# set after, otherwise changes origtitle and toctitle
|
||||
chapter['title'] = chapter['chapter']
|
||||
retval.append(chapter)
|
||||
else:
|
||||
retval = self.chapters
|
||||
|
|
|
|||
Loading…
Reference in a new issue