generated theindex.html is valid html

This commit is contained in:
Araq 2016-09-09 16:16:58 +02:00
commit 37c3c0033d
3 changed files with 25 additions and 14 deletions

View file

@ -456,7 +456,7 @@ proc genItem(d: PDoc, n, nameNode: PNode, k: TSymKind) =
var seeSrcRope: Rope = nil
let docItemSeeSrc = getConfigVar("doc.item.seesrc")
if docItemSeeSrc.len > 0:
let cwd = getCurrentDir()
let cwd = getCurrentDir().canonicalizePath()
var path = n.info.toFullPath
if path.startsWith(cwd):
path = path[cwd.len+1 .. ^1].replace('\\', '/')