mirror of https://github.com/status-im/NimYAML.git
... and now also fixed it for canonical form
This commit is contained in:
parent
1df2444c50
commit
9945375904
|
@ -488,7 +488,8 @@ proc present*(s: var YamlStream, target: Stream, tagLib: TagLibrary,
|
|||
safeWrite(newline)
|
||||
writeTagAndAnchor(target, item.mapTag, tagLib, item.mapAnchor)
|
||||
indentation += options.indentationStep
|
||||
elif options.style == psJson: indentation += options.indentationStep
|
||||
elif options.style in [psJson, psCanonical]:
|
||||
indentation += options.indentationStep
|
||||
else:
|
||||
if nextState in [dBlockMapValue, dBlockImplicitMapKey]:
|
||||
startItem(target, options.style, indentation,
|
||||
|
|
Loading…
Reference in New Issue