From 55758920f446ebf1eecab980460bf6e664b8dba7 Mon Sep 17 00:00:00 2001 From: Timothee Cour Date: Mon, 25 May 2020 18:16:00 -0700 Subject: docgen: fix #14448 show @@ as .. in href text (#14451) --- compiler/docgen.nim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'compiler') diff --git a/compiler/docgen.nim b/compiler/docgen.nim index d989905b0..207294597 100644 --- a/compiler/docgen.nim +++ b/compiler/docgen.nim @@ -100,7 +100,7 @@ proc presentationPath*(conf: ConfigRef, file: AbsoluteFile, isTitle = false): Re if isTitle: result = result.string.nativeToUnix.RelativeFile else: - result = result.string.replace("..", "@@").RelativeFile ## refs #13223 + result = result.string.replace("..", dotdotMangle).RelativeFile doAssert not result.isEmpty doAssert not isAbsolute(result.string) @@ -926,7 +926,7 @@ proc traceDeps(d: PDoc, it: PNode) = if d.section[k] != nil: d.section[k].add(", ") dispA(d.conf, d.section[k], "$1", - "$1", [rope esc(d.target, changeFileExt(external, "")), + "$1", [rope esc(d.target, external.prettyLink), rope changeFileExt(external, "html")]) proc exportSym(d: PDoc; s: PSym) = @@ -936,7 +936,7 @@ proc exportSym(d: PDoc; s: PSym) = if d.section[k] != nil: d.section[k].add(", ") dispA(d.conf, d.section[k], "$1", - "$1", [rope esc(d.target, changeFileExt(external, "")), + "$1", [rope esc(d.target, external.prettyLink), rope changeFileExt(external, "html")]) elif s.kind != skModule and s.owner != nil: let module = originatingModule(s) -- cgit 1.4.1-2-gfad0