From 847c11f5901f4c67125101caabc2c34d1d31bf91 Mon Sep 17 00:00:00 2001 From: Yaroslav Bolyukin Date: Tue, 12 Jan 2021 00:11:59 +0000 Subject: [PATCH] fix: manifest output should put spaces in brackets --- --- a/crates/jrsonnet-evaluator/src/builtin/manifest.rs +++ b/crates/jrsonnet-evaluator/src/builtin/manifest.rs @@ -74,7 +74,7 @@ } else if mtype == ManifestType::Std { buf.push_str("\n\n"); buf.push_str(cur_padding); - } else if mtype == ManifestType::ToString { + } else if mtype == ManifestType::ToString || mtype == ManifestType::Manifest { buf.push(' '); } buf.push(']'); @@ -112,7 +112,7 @@ } else if mtype == ManifestType::Std { buf.push_str("\n\n"); buf.push_str(cur_padding); - } else if mtype == ManifestType::ToString { + } else if mtype == ManifestType::ToString || mtype == ManifestType::Manifest { buf.push(' '); } buf.push('}'); -- gitstuff