diff --git a/calibre-plugin/plugin-defaults.ini b/calibre-plugin/plugin-defaults.ini index 3cd5256..836fa4d 100644 --- a/calibre-plugin/plugin-defaults.ini +++ b/calibre-plugin/plugin-defaults.ini @@ -599,6 +599,11 @@ include_logpage: false ## end up with Completed stories that have just one logpage entry. #include_logpage: smart +## By default, logpage is placed before the story chapters. This +## setting, if true, will place the logpage after the chapters +## instead. +logpage_at_end: false + ## items to include in the log page Empty metadata entries, or those ## that haven't changed since the last update, will *not* appear, even ## if in the list. You can include extra text or HTML that will be diff --git a/fanficfare/configurable.py b/fanficfare/configurable.py index f35a7da..754cded 100644 --- a/fanficfare/configurable.py +++ b/fanficfare/configurable.py @@ -176,6 +176,7 @@ def get_valid_set_options(): None,boollist), 'include_logpage':(None,['epub'],boollist+['smart']), + 'logpage_at_end':(None,['epub'],boollist), 'windows_eol':(None,['txt'],boollist), @@ -283,6 +284,7 @@ def get_valid_keywords(): 'image_max_size', 'include_images', 'include_logpage', + 'logpage_at_end', 'include_subject_tags', 'include_titlepage', 'include_tocpage', diff --git a/fanficfare/defaults.ini b/fanficfare/defaults.ini index 4889f32..8972a9a 100644 --- a/fanficfare/defaults.ini +++ b/fanficfare/defaults.ini @@ -604,6 +604,11 @@ include_logpage: false ## end up with Completed stories that have just one logpage entry. #include_logpage: smart +## By default, logpage is placed before the story chapters. This +## setting, if true, will place the logpage after the chapters +## instead. +logpage_at_end: false + ## items to include in the log page Empty metadata entries, or those ## that haven't changed since the last update, will *not* appear, even ## if in the list. You can include extra text or HTML that will be diff --git a/fanficfare/writers/writer_epub.py b/fanficfare/writers/writer_epub.py index 3a54ff7..3a802c5 100644 --- a/fanficfare/writers/writer_epub.py +++ b/fanficfare/writers/writer_epub.py @@ -46,7 +46,7 @@ class EpubWriter(BaseStoryWriter): BaseStoryWriter.__init__(self, config, story) self.EPUB_CSS = string.Template('''${output_css}''') - + self.EPUB_TITLE_PAGE_START = string.Template('''
@@ -117,7 +117,7 @@ ${value}''') - + self.EPUB_LOG_ENTRY = string.Template(''' ${label}: ${value} ''') - + self.EPUB_LOG_UPDATE_END = string.Template('''