rst: minor fixes (#18960)

This commit is contained in:
Andrey Makarov 2021-10-06 14:53:01 +03:00 • committed by GitHub
commit f03872d99e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 4 deletions

View file

@ -55,7 +55,7 @@ proc toAst(input: string,
var (rst, _, _) = rstParse(input, filen, line=LineRstInit, column=ColRstInit,
rstOptions, myFindFile, testMsgHandler)
result = renderRstToStr(rst)
result = treeRepr(rst)
except EParseError as e:
if e.msg != "":
result = e.msg