mirror of https://github.com/status-im/NimYAML.git
Fixes #19
This commit is contained in:
parent
b41ab142d5
commit
9054bf7630
|
@ -729,7 +729,7 @@ proc representChild*[T](value: seq[T], ts: TagStyle, c: SerializationContext):
|
|||
|
||||
proc representChild*[O](value: ref O, ts: TagStyle, c: SerializationContext):
|
||||
RawYamlStream =
|
||||
if value == nil:
|
||||
if isNil(value):
|
||||
result = iterator(): YamlStreamEvent =
|
||||
yield scalarEvent("~", yTagNull)
|
||||
elif c.style == asNone: result = representChild(value[], ts, c)
|
||||
|
|
Loading…
Reference in New Issue