From b888b846e452d50d8dc63a98dc25386b0c59ee61 Mon Sep 17 00:00:00 2001 From: Jim Miller Date: Thu, 19 Jul 2018 16:43:51 -0500 Subject: [PATCH] Fix origtitle/toctitle for mark_new_chapters. Broken in chapter metadata revamp. --- fanficfare/story.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fanficfare/story.py b/fanficfare/story.py index 97f658ce..165f6c0d 100644 --- a/fanficfare/story.py +++ b/fanficfare/story.py @@ -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