Missing toc items. 1.11.3
authorRadek Czajka <rczajka@rczajka.pl>
Mon, 25 Jan 2021 13:08:05 +0000 (14:08 +0100)
committerRadek Czajka <rczajka@rczajka.pl>
Mon, 25 Jan 2021 13:08:05 +0000 (14:08 +0100)
CHANGELOG.md
setup.py
src/librarian/epub.py

index 621ddae..43dddfc 100644 (file)
@@ -3,6 +3,12 @@
 This document records all notable changes to Librarian.
 
 
+## 1.11.3 (2021-01-25)
+
+### Fixed
+- Missing items in EPUB TOC.
+
+
 ## 1.11.2 (2020-12-18)
 
 ### Fixed
index 54e462e..d577dbd 100755 (executable)
--- a/setup.py
+++ b/setup.py
@@ -22,7 +22,7 @@ def whole_tree(prefix, path):
 
 setup(
     name='librarian',
-    version='1.11.2',
+    version='1.11.3',
     description='Converter from WolneLektury.pl XML-based language to XHTML, TXT and other formats',
     author="Marek Stępniowski",
     author_email='marek@stepniowski.com',
index 35766b8..fc5ee16 100644 (file)
@@ -653,7 +653,7 @@ def transform(wldoc, verbose=False, style=None,
     output.toc = toc[0][1]
 
     if len(toc) < 2:
-        toc.append(
+        output.toc.append(
             epub.Link(
                 "part1.xhtml",
                 "Początek utworu",
@@ -663,7 +663,7 @@ def transform(wldoc, verbose=False, style=None,
 
     # Last modifications in container files and EPUB creation
     if len(annotations) > 0:
-        toc.append(
+        output.toc.append(
             epub.Link(
                 "annotations.xhtml",
                 "Przypisy",
@@ -687,7 +687,7 @@ def transform(wldoc, verbose=False, style=None,
         output.add_item(item)
         spine.append(item)
 
-    toc.append(
+    output.toc.append(
         epub.Link(
             "support.xhtml",
             "Wesprzyj Wolne Lektury",
@@ -706,7 +706,7 @@ def transform(wldoc, verbose=False, style=None,
     output.add_item(item)
     spine.append(item)
 
-    toc.append(
+    output.toc.append(
         epub.Link(
             "last.xhtml",
             "Strona redakcyjna",