From 02e90dceef6fef2a804512d5df984c6f9b5af174 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Fri, 17 Sep 2010 17:48:38 +0200 Subject: [PATCH] epub: remove reduntant toc entry, fix validation --- librarian/epub.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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: -- 2.20.1