From: Robert Błaut Date: Mon, 3 Mar 2014 20:21:43 +0000 (+0100) Subject: Merge remote-tracking branch 'upstream/master' X-Git-Tag: 1.7~99^2~18 X-Git-Url: https://git.mdrn.pl/librarian.git/commitdiff_plain/f26b53f9b72c689f58714b36b31c7e1cdc2dfa2a?hp=ccc0df182c479eb554148e5bbc3fd9f6bec95e20 Merge remote-tracking branch 'upstream/master' --- diff --git a/librarian/epub.py b/librarian/epub.py index 294843b..eba59fe 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(''))