Fix expand

This commit is contained in:
Maxim Zhiburt 2024-12-18 00:12:54 +03:00
parent 91130104f8
commit 7326174b80

View File

@ -424,7 +424,14 @@ fn expanded_table_kv(record: &Record, cfg: Cfg<'_>) -> CellResult {
table.set_index_style(get_key_style(&cfg)); table.set_index_style(get_key_style(&cfg));
table.set_indent(cfg.opts.config.table.padding); table.set_indent(cfg.opts.config.table.padding);
let out = TableOutput::new(table, false, true, count_rows); let mut out = TableOutput::new(table, false, true, count_rows);
configure_table(
&mut out,
cfg.opts.config,
&cfg.opts.style_computer,
cfg.opts.mode,
);
maybe_expand_table(out, cfg.opts.width) maybe_expand_table(out, cfg.opts.width)
.map(|value| value.map(|value| CellOutput::clean(value, count_rows, false))) .map(|value| value.map(|value| CellOutput::clean(value, count_rows, false)))