RST hotfix: don't crash in rstnodeToRefname

This commit is contained in:
Araq
2018-06-14 15:01:30 +02:00
parent 2d186f18ec
commit 894f21eb73

View File

@@ -363,6 +363,7 @@ proc addNodes(n: PRstNode): string =
addNodesAux(n, result)
proc rstnodeToRefnameAux(n: PRstNode, r: var string, b: var bool) =
if n == nil: return
if n.kind == rnLeaf:
for i in countup(0, len(n.text) - 1):
case n.text[i]