From 5ea41f9b810aa661189d3ab8a3cd15b61a3d900f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Robert=20B=C5=82aut?= Date: Thu, 27 Feb 2014 17:03:20 +0100 Subject: [PATCH 1/1] [epub, mobi] fix for IT #3356 - new line char is problemtic in toc.ncx - replace it with space --- librarian/epub.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/librarian/epub.py b/librarian/epub.py index 6377526..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) -- 2.20.1