new VM is getting stable
This commit is contained in:
parent
6ea538cec3
commit
b4e25a6372
8 changed files with 206 additions and 124 deletions
|
|
@ -216,7 +216,7 @@ proc makeYamlString*(s: string): PRope =
|
|||
const MaxLineLength = 64
|
||||
result = nil
|
||||
var res = "\""
|
||||
for i in countup(0, len(s) - 1):
|
||||
for i in countup(0, if s.isNil: -1 else: (len(s)-1)):
|
||||
if (i + 1) mod MaxLineLength == 0:
|
||||
add(res, '\"')
|
||||
add(res, "\n")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue