From b1cea64b84d1f0252a01fc556fb846bb91b8e77f Mon Sep 17 00:00:00 2001 From: Jim Miller Date: Thu, 23 Aug 2018 11:53:50 -0500 Subject: [PATCH] Tweak mobi output--move TOC to end. --- fanficfare/mobi.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fanficfare/mobi.py b/fanficfare/mobi.py index 2f59c72c..a6361435 100644 --- a/fanficfare/mobi.py +++ b/fanficfare/mobi.py @@ -101,6 +101,7 @@ class Converter: title_html.append(entrytitle.Body()) title_html.append(PAGE_BREAK) + toc_html.append(PAGE_BREAK) toc_html.append('

Table of Contents


') for pos, html in enumerate(html_strs[1:]): @@ -132,7 +133,7 @@ class Converter: # logger.debug("toc_html:%s"%toc_html) # logger.debug("body_html:%s"%body_html) # logger.debug("footer:%s"%footer) - all_html = header + '\n'.join(title_html + toc_html + body_html) + footer + all_html = header + '\n'.join(title_html + body_html + toc_html) + footer #print "%s" % all_html.encode('utf8') return all_html