mirror of https://github.com/status-im/NimYAML.git
REALLY don't use newlines in ypsMinimal
This commit is contained in:
parent
2d4746b56c
commit
f29a55c907
|
@ -68,7 +68,8 @@ proc startItem(target: Stream, style: YamlPresentationStyle, indentation: int,
|
||||||
target.write(": ")
|
target.write(": ")
|
||||||
state = dFlowMapValue
|
state = dFlowMapValue
|
||||||
of 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))
|
target.write(",\x0A" & repeat(' ', indentation))
|
||||||
if style != ypsJson:
|
if style != ypsJson:
|
||||||
target.write("? ")
|
target.write("? ")
|
||||||
|
|
Loading…
Reference in New Issue