mirror of
https://github.com/status-im/NimYAML.git
synced 2025-02-13 03:36:41 +00:00
parent
48a90e36e8
commit
cac1a3bd7c
@ -541,7 +541,12 @@ proc startItem(
|
|||||||
ctx.whitespace()
|
ctx.whitespace()
|
||||||
ctx.state = dBlockExplicitMapKey
|
ctx.state = dBlockExplicitMapKey
|
||||||
else: ctx.state = dBlockImplicitMapKey
|
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:
|
of dBlockExplicitMapKey:
|
||||||
ctx.newline()
|
ctx.newline()
|
||||||
t.write(repeat(' ', ctx.indentation))
|
t.write(repeat(' ', ctx.indentation))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user