fixes yet another indexing bug caused by the strict strings
This commit is contained in:
parent
5472574f72
commit
dc809bd485
1 changed files with 1 additions and 1 deletions
|
|
@ -189,7 +189,7 @@ proc putComment(g: var TSrcGen, s: string) =
|
||||||
put(g, tkComment, com)
|
put(g, tkComment, com)
|
||||||
com = "## "
|
com = "## "
|
||||||
inc(i)
|
inc(i)
|
||||||
if s[i] == '\x0A': inc(i)
|
if i < s.len and s[i] == '\x0A': inc(i)
|
||||||
optNL(g, ind)
|
optNL(g, ind)
|
||||||
of '\x0A':
|
of '\x0A':
|
||||||
put(g, tkComment, com)
|
put(g, tkComment, com)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue