From: Radek Czajka Date: Mon, 25 Jan 2021 13:08:05 +0000 (+0100) Subject: Missing toc items. X-Git-Tag: 1.11.3 X-Git-Url: https://git.mdrn.pl/librarian.git/commitdiff_plain/fe763827605d48b2ad27d313cbcd84b588066070?ds=sidebyside;hp=7bd7f505b6420e7667b29d5aa7e6a2e3a2a520bd Missing toc items. --- diff --git a/CHANGELOG.md b/CHANGELOG.md index 621ddae..43dddfc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/setup.py b/setup.py index 54e462e..d577dbd 100755 --- 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', diff --git a/src/librarian/epub.py b/src/librarian/epub.py index 35766b8..fc5ee16 100644 --- a/src/librarian/epub.py +++ b/src/librarian/epub.py @@ -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",