From: Robert Błaut Date: Thu, 27 Feb 2014 16:12:17 +0000 (+0100) Subject: Merge remote-tracking branch 'upstream/master' X-Git-Tag: 1.7~99^2~19 X-Git-Url: https://git.mdrn.pl/librarian.git/commitdiff_plain/08dc6413258e57f1638f8f91feef63d538d9cdbc?hp=9c32ad2925b2d8359eb888c966a2faac8d94307d Merge remote-tracking branch 'upstream/master' --- 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(''))