From 093688e1029dc071e1d0b4369d0f6a521a37cdf2 Mon Sep 17 00:00:00 2001 From: Sayan Nandan Date: Thu, 14 Mar 2024 09:43:10 +0530 Subject: [PATCH] skysh: Fix multi-row formatting --- cli/src/resp.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cli/src/resp.rs b/cli/src/resp.rs index c7317edc..4027fc1c 100644 --- a/cli/src/resp.rs +++ b/cli/src/resp.rs @@ -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!();