mirror of
https://github.com/nim-lang/Nim.git
synced 2026-07-20 16:01:29 +00:00
RST hotfix: don't crash in rstnodeToRefname
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user