From 1d11c388e337491184b82061cf5b9d6c674c58dd Mon Sep 17 00:00:00 2001 From: amtoine Date: Sat, 11 Mar 2023 11:14:57 +0100 Subject: [PATCH] do not add a depth level when using the "no quote" function This function does not add a depth level to the Value it's being given, it only - adds or removes quotes from a String - passes the Value to `value_to_string` again --- crates/nu-command/src/formats/to/nuon.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/nu-command/src/formats/to/nuon.rs b/crates/nu-command/src/formats/to/nuon.rs index b7b18a8645..ff9b2e1683 100644 --- a/crates/nu-command/src/formats/to/nuon.rs +++ b/crates/nu-command/src/formats/to/nuon.rs @@ -272,7 +272,7 @@ fn value_to_string_without_quotes( val.clone() } }), - _ => value_to_string(v, span, depth + 1, indent), + _ => value_to_string(v, span, depth, indent), } }