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