From a1b92a14debfbbd0f928fbc59fe1b1feaf98d4af Mon Sep 17 00:00:00 2001 From: Felix Krause Date: Mon, 11 Jan 2016 21:12:38 +0100 Subject: [PATCH] REALLY fixed presenter bug --- private/presenter.nim | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/private/presenter.nim b/private/presenter.nim index 2f4de2f..a5be660 100644 --- a/private/presenter.nim +++ b/private/presenter.nim @@ -76,6 +76,7 @@ proc startItem(target: Stream, style: YamlPresentationStyle, indentation: int, state = dFlowExplicitMapKey elif isObject and style == ypsMinimal: target.write(", ? ") + state = dFlowExplicitMapKey else: target.write(", ") state = dFlowImplicitMapKey @@ -428,11 +429,9 @@ proc present*(s: YamlStream, target: Stream, tagLib: YamlTagLibrary, dBlockImplicitMapKey, dBlockSequenceItem]: indentation -= indentationStep safeWrite('}') - of dBlockMapValue, dBlockInlineMap, dBlockImplicitMapKey, - dBlockExplicitMapKey: + of dBlockMapValue, dBlockInlineMap: discard else: - echo "Unexpected level: ", level assert false indentation -= indentationStep of yamlEndDocument: