Skip to content

Commit

Permalink
skysh: Fix multi-row formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ohsayan committed Mar 14, 2024
1 parent 1cdc949 commit 093688e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cli/src/resp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,10 @@ pub fn format_response(resp: Response, print_special: bool, pretty_format: bool)
} else {
for (i, row) in rows.into_iter().enumerate().map(|(i, r)| (i + 1, r)) {
if pretty_format {
println!("{}", "({i})".grey().bold())
let fmt = format!("({i})").grey().italic();
print!("{fmt}")
} else {
println!("({i})")
print!("({i})")
}
print_row(row, pretty_format);
println!();
Expand Down

0 comments on commit 093688e

Please sign in to comment.