... and now also fixed it for canonical form

This commit is contained in:
Felix Krause 2016-06-08 19:46:58 +02:00
parent 1df2444c50
commit 9945375904
1 changed files with 2 additions and 1 deletions

View File

@ -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,