This commit is contained in:
Andreas Rumpf 2021-05-09 11:34:28 +02:00 • committed by GitHub
commit d84a3b10b5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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