mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2025-12-21 16:23:58 +01:00
Tweak mobi output--move TOC to end.
This commit is contained in:
parent
42879bdc34
commit
b1cea64b84
1 changed files with 2 additions and 1 deletions
|
|
@ -101,6 +101,7 @@ class Converter:
|
|||
title_html.append(entrytitle.Body())
|
||||
|
||||
title_html.append(PAGE_BREAK)
|
||||
toc_html.append(PAGE_BREAK)
|
||||
toc_html.append('<a name="TOCTOP"><h3>Table of Contents</h3><br />')
|
||||
|
||||
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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue