From f29a55c907273ad575ed79a4eb8e1c5638db953f Mon Sep 17 00:00:00 2001 From: Felix Krause Date: Mon, 11 Jan 2016 20:59:49 +0100 Subject: [PATCH] REALLY don't use newlines in ypsMinimal --- private/presenter.nim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/private/presenter.nim b/private/presenter.nim index 498736b..f5b4427 100644 --- a/private/presenter.nim +++ b/private/presenter.nim @@ -68,7 +68,8 @@ proc startItem(target: Stream, style: YamlPresentationStyle, indentation: int, target.write(": ") state = dFlowMapValue of dFlowMapValue: - if isObject or style in [ypsJson, ypsCanonical]: + if (isObject and style != ypsMinimal) or + style in [ypsJson, ypsCanonical]: target.write(",\x0A" & repeat(' ', indentation)) if style != ypsJson: target.write("? ")