nu-table/ Add table.indent configuration (#9983)

Hi there.

Am I got it right?

ref: https://github.com/zhiburt/tabled/issues/358
cc: @fdncred

---------

Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
This commit is contained in:
Maxim Zhiburt
2023-08-11 16:37:16 +03:00
committed by GitHub
parent a0cecf7658
commit aa37572ddc
11 changed files with 226 additions and 13 deletions

View File

@ -42,6 +42,7 @@ fn try_build_map(
Span::unknown(),
0,
usize::MAX,
(config.table_indent.left, config.table_indent.right),
);
let result = ExpandedTable::new(None, false, String::new()).build_map(&cols, &vals, opts);
match result {
@ -66,6 +67,7 @@ fn try_build_list(
Span::unknown(),
0,
usize::MAX,
(config.table_indent.left, config.table_indent.right),
);
let result = ExpandedTable::new(None, false, String::new()).build_list(&vals, opts);
match result {