From 68ca4c1bc0b2173de072345ee587ff1e2a15cf37 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 9 Aug 2012 16:30:39 +0530 Subject: [PATCH] ... --- src/calibre/ebooks/oeb/base.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/calibre/ebooks/oeb/base.py b/src/calibre/ebooks/oeb/base.py index 07de23d866..2af72a07fb 100644 --- a/src/calibre/ebooks/oeb/base.py +++ b/src/calibre/ebooks/oeb/base.py @@ -1541,6 +1541,8 @@ class TOC(object): if title: title = re.sub(r'\s+', ' ', title) element(label, NCX('text')).text = title + # Do not unescape this URL as ADE requires it to be escaped to + # handle semi colons and other special characters in the file names element(point, NCX('content'), src=node.href) node.to_ncx(point) return parent