nim doc: fixes cross-link generation when --out is used

This commit is contained in:
Araq 2018-09-10 23:27:45 +02:00
commit f14f554435
2 changed files with 10 additions and 5 deletions

View file

@ -111,7 +111,7 @@ proc canon(x: string; result: var string; state: var int) =
# f/..
while d > (state and 1) and result[d-1] != DirSep:
dec d
setLen(result, d-1)
if d > 0: setLen(result, d-1)
elif isDot(x, b):
discard "discard the dot"
elif b[1] > b[0]: