From 5073b1bda174aa9906547b1615bd890541d62d4b Mon Sep 17 00:00:00 2001 From: Yaroslav Bolyukin Date: Fri, 17 May 2024 17:36:45 +0200 Subject: [PATCH] fix: spacing in array toString --- crates/jrsonnet-evaluator/src/manifest.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/jrsonnet-evaluator/src/manifest.rs b/crates/jrsonnet-evaluator/src/manifest.rs index 77531de0..c1e9773e 100644 --- a/crates/jrsonnet-evaluator/src/manifest.rs +++ b/crates/jrsonnet-evaluator/src/manifest.rs @@ -237,8 +237,8 @@ fn manifest_json_ex_buf( buf.push_str(options.newline); buf.push_str(cur_padding); } - ToString => buf.push(' '), - Minify => {} + ToString if i != 0 => buf.push(' '), + Minify | ToString => {} }; State::push_description(