diff --git a/crates/nu-command/src/formats/to/nuon.rs b/crates/nu-command/src/formats/to/nuon.rs index ff9b2e168..dcb9e34b8 100644 --- a/crates/nu-command/src/formats/to/nuon.rs +++ b/crates/nu-command/src/formats/to/nuon.rs @@ -258,6 +258,20 @@ pub fn value_to_string( } } +fn get_true_indentation(depth: usize, indent: &Option) -> String { + match indent { + Some(i) => i.repeat(depth), + None => "".to_string(), + } +} + +fn get_true_newline(indent: &Option) -> String { + match indent { + Some(_) => "\n".to_string(), + None => "".to_string(), + } +} + fn value_to_string_without_quotes( v: &Value, span: Span,