mirror of
https://github.com/status-im/NimYAML.git
synced 2025-02-09 01:44:16 +00:00
parent
48a90e36e8
commit
cac1a3bd7c
@ -541,7 +541,12 @@ proc startItem(
|
||||
ctx.whitespace()
|
||||
ctx.state = dBlockExplicitMapKey
|
||||
else: ctx.state = dBlockImplicitMapKey
|
||||
of dBlockInlineMap: ctx.state = dBlockImplicitMapKey
|
||||
of dBlockInlineMap:
|
||||
if kind != ikCompactScalar or ctx.options.explicitKeys:
|
||||
ctx.append('?')
|
||||
ctx.whitespace()
|
||||
ctx.state = dBlockExplicitMapKey
|
||||
else: ctx.state = dBlockImplicitMapKey
|
||||
of dBlockExplicitMapKey:
|
||||
ctx.newline()
|
||||
t.write(repeat(' ', ctx.indentation))
|
||||
|
Loading…
x
Reference in New Issue
Block a user