From 99453759042cf82ff43253f1991fdb795b962af8 Mon Sep 17 00:00:00 2001 From: Felix Krause Date: Wed, 8 Jun 2016 19:46:58 +0200 Subject: [PATCH] ... and now also fixed it for canonical form --- private/presenter.nim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/private/presenter.nim b/private/presenter.nim index eabe532..8655688 100644 --- a/private/presenter.nim +++ b/private/presenter.nim @@ -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,