This commit is contained in:
Andreas Rumpf
2021-05-09 11:34:28 +02:00
committed by GitHub
parent 69710e4548
commit d84a3b10b5

View File

@@ -206,7 +206,7 @@ proc newDocumentor*(filename: AbsoluteFile; cache: IdentCache; conf: ConfigRef,
proc (gen: var RstGenerator; filename, cmd: string; status: int; content: string) =
if conf.docCmd == docCmdSkip: return
inc(gen.id)
var d = TDocumentor(gen)
var d = (ptr TDocumentor)(addr gen)
var outp: AbsoluteFile
if filename.len == 0:
let nameOnly = splitFile(d.filename).name