mirror of
https://github.com/nushell/nushell.git
synced 2024-12-15 11:42:45 +01:00
fix list formatting (#762)
This commit is contained in:
parent
283a615ecc
commit
c55b6c5ed5
@ -283,8 +283,10 @@ fn convert_to_table(
|
||||
vec![("string".to_string(), (row_num + row_offset).to_string())];
|
||||
|
||||
if headers.is_empty() {
|
||||
// if header row is empty, this is probably a list so format it that way
|
||||
row.push(("list".to_string(), item.into_abbreviated_string(config)))
|
||||
row.push((
|
||||
item.get_type().to_string(),
|
||||
item.into_abbreviated_string(config),
|
||||
))
|
||||
} else {
|
||||
for header in headers.iter().skip(1) {
|
||||
let result = match item {
|
||||
|
Loading…
Reference in New Issue
Block a user