This commit is contained in:
Kovid Goyal 2012-08-09 16:30:39 +05:30
parent 77d54b0581
commit 68ca4c1bc0

View File

@ -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