docutils: make ':test:' work without argument

This commit is contained in:
Andreas Rumpf 2018-04-15 13:25:40 +02:00
commit ed9c28484a
2 changed files with 7 additions and 4 deletions

View file

@ -816,7 +816,7 @@ proc commandRstAux(filename, outExt: string) =
# Nim's convention: every path is relative to the file it was written in:
outp = splitFile(d.filename).dir / filename
writeFile(outp, content)
let cmd = unescape(cmd) % quoteShell(outp)
let cmd = cmd % quoteShell(outp)
rawMessage(hintExecuting, cmd)
if execShellCmd(cmd) != status:
rawMessage(errExecutionOfProgramFailed, cmd)