diff --git a/crates/nu-command/src/formats/to/nuon.rs b/crates/nu-command/src/formats/to/nuon.rs index eb932eb88b..023cade21e 100644 --- a/crates/nu-command/src/formats/to/nuon.rs +++ b/crates/nu-command/src/formats/to/nuon.rs @@ -102,6 +102,7 @@ pub fn value_to_string( ) -> Result { let nl = get_true_newline(indent); let idt = get_true_indentation(depth, indent); + let idt_po = get_true_indentation(depth + 1, indent); match v { Value::Binary { val, .. } => { @@ -212,8 +213,7 @@ pub fn value_to_string( let mut collection = vec![]; for val in vals { collection.push(format!( - "{}{}", - get_true_indentation(depth + 1, indent), + "{idt_po}{}", value_to_string_without_quotes(val, span, depth + 1, indent,)? )); }