X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/07793241cd7b314aadc8bad12d1c327545545e19..ef7911fba9c330552599bc6eb9dc22606246dd7e:/librarian/epub.py?ds=inline diff --git a/librarian/epub.py b/librarian/epub.py index c25ba19..84a745f 100644 --- a/librarian/epub.py +++ b/librarian/epub.py @@ -349,13 +349,13 @@ def transform(provider, slug, output_file=None, output_dir=None): 'version="2005-1">' \ '' \ 'Strona tytułowa' \ - '' \ - 'Początek utworu' \ '') nav_map = toc_file[-1] toc, chunk_counter = transform_file(input_xml) - toc_counter = toc.write_to_xml(nav_map, 3) # we already have 2 navpoints + if not toc.children: + toc.add(u"Początek utworu", 1) + toc_counter = toc.write_to_xml(nav_map, 2) # Last modifications in container files and EPUB creation if len(annotations) > 0: