This commit is contained in:
2025-01-09 12:33:00 +01:00
parent d842fb786c
commit 4b36904f3a
4 changed files with 18 additions and 2 deletions

View File

@ -36,7 +36,7 @@ pub fn helper_table_print<T: TableGet>(
for (left, right) in table.get_rows().iter() {
let left_str = left.as_ref();
let right_str = format!("{:.5}", right);
let right_str = right.to_string();
let padding_amount = width.saturating_sub(left_str.len() + right_str.len());
let padding = " ".repeat(padding_amount);
writeln!(f, "{}{}{}", left_str.bold().green(), padding, right_str)?;