mirror of
https://github.com/status-im/NimYAML.git
synced 2025-01-12 04:24:16 +00:00
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…
x
Reference in New Issue
Block a user