X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/3615220e78b96f6c29a1d4e7c580904ecab204f7..dfab836a2bcb5a8e4787e960c14f3790f7773e8d:/librarian/epub.py diff --git a/librarian/epub.py b/librarian/epub.py index 81dcb6e..b17ca0e 100644 --- a/librarian/epub.py +++ b/librarian/epub.py @@ -249,7 +249,7 @@ class TOC(object): nav_label = nav_map.makeelement(NCXNS('navLabel')) text = nav_map.makeelement(NCXNS('text')) - text.text = child.name + text.text = re.sub(r'\n', ' ', child.name) nav_label.append(text) nav_point.append(nav_label) @@ -499,7 +499,7 @@ def transform(wldoc, verbose=False, '')) manifest.append(etree.fromstring( '' % (cover_name, bound_cover.mime_type()))) - spine.insert(0, etree.fromstring('')) + spine.insert(0, etree.fromstring('')) opf.getroot()[0].append(etree.fromstring('')) guide.append(etree.fromstring(''))