REALLY don't use newlines in ypsMinimal

This commit is contained in:
Felix Krause 2016-01-11 20:59:49 +01:00
parent 2d4746b56c
commit f29a55c907
1 changed files with 2 additions and 1 deletions

View File

@ -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("? ")