diff options
author | Timothee Cour <timothee.cour2@gmail.com> | 2020-05-25 18:16:00 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-25 18:16:00 -0700 |
commit | 55758920f446ebf1eecab980460bf6e664b8dba7 (patch) | |
tree | 85f9b5d1c0879ac881dc2567c4017fb2c333374d /compiler | |
parent | acadda8da281fbe796386ba05ffab957883f0fef (diff) | |
download | Nim-55758920f446ebf1eecab980460bf6e664b8dba7.tar.gz |
docgen: fix #14448 show @@ as .. in href text (#14451)
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/docgen.nim | 6 |
1 files changed, 3 insertions, 3 deletions
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], "<a class=\"reference external\" href=\"$2\">$1</a>", - "$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], "<a class=\"reference external\" href=\"$2\">$1</a>", - "$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) |