compute the newline and the indentation of the current depth
This commit is contained in:
parent
ff93bb6894
commit
3be1e20c74
|
@ -100,6 +100,9 @@ pub fn value_to_string(
|
|||
depth: usize,
|
||||
indent: &Option<String>,
|
||||
) -> Result<String, ShellError> {
|
||||
let nl = get_true_newline(indent);
|
||||
let idt = get_true_indentation(depth, indent);
|
||||
|
||||
match v {
|
||||
Value::Binary { val, .. } => {
|
||||
let mut s = String::with_capacity(2 * val.len());
|
||||
|
|
Loading…
Reference in New Issue
Block a user