The file directive is relative to the file it is in

This commit is contained in:
LemonBoy
2019-01-29 11:52:19 +01:00
committed by Andreas Rumpf
parent 9031c8fb0f
commit 49710b9d14

View File

@@ -246,7 +246,7 @@ proc genComment(d: PDoc, n: PNode): string =
result = ""
var dummyHasToc: bool
if n.comment.len > 0:
renderRstToOut(d[], parseRst(n.comment, toFilename(d.conf, n.info),
renderRstToOut(d[], parseRst(n.comment, toFullPath(d.conf, n.info),
toLinenumber(n.info), toColumn(n.info),
dummyHasToc, d.options, d.conf), result)