From a2d21637276d0386412ca17316d6624f0a3105ab Mon Sep 17 00:00:00 2001 From: =?utf8?q?Robert=20B=C5=82aut?= Date: Tue, 28 Jan 2014 14:46:26 +0100 Subject: [PATCH] [ePub] Fix for error validation with epubcheck 3.0.1 in multi-volume books ERROR: example.epub/OPS/toc.ncx(24,47): assertion failed: different playOrder values for navPoint/navTarget/pageTarget that refer to same target --- librarian/epub.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/librarian/epub.py b/librarian/epub.py index fa15920..2f7bbec 100644 --- a/librarian/epub.py +++ b/librarian/epub.py @@ -311,7 +311,9 @@ def transform_chunk(chunk_xml, chunk_no, annotations, empty=False, _empty_html_s toc = TOC() for element in chunk_xml[0]: - if element.tag in ("naglowek_czesc", "naglowek_rozdzial", "naglowek_akt", "srodtytul"): + if element.tag in ("naglowek_czesc"): + toc.add(node_name(element), "part%d.html#book-text" % chunk_no) + elif element.tag in ("naglowek_rozdzial", "naglowek_akt", "srodtytul"): toc.add(node_name(element), "part%d.html" % chunk_no) elif element.tag in ('naglowek_podrozdzial', 'naglowek_scena'): subnumber = toc.add(node_name(element), "part%d.html" % chunk_no, level=1, is_part=False) -- 2.20.1