mirror of
https://github.com/nushell/nushell.git
synced 2025-06-03 08:36:32 +02:00
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…
x
Reference in New Issue
Block a user