Skip to content

Commit

Permalink
UI(afterfact): reverted show order #1031
Browse files Browse the repository at this point in the history
  • Loading branch information
hitenkoku committed May 5, 2023
1 parent f65f7f6 commit 2e7e107
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/afterfact.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1140,15 +1140,15 @@ fn _print_detection_summary_tables(
]);
}

let odd_row = &mut output[4].iter().skip(1).step_by(2);
let even_row = &mut output[4].iter().skip(2).step_by(2);
let odd_col = &mut output[4].iter().skip(1).take(5);
let even_col = &mut output[4].iter().skip(6).take(5);
tb.add_row(vec![
Cell::new(&output[4][0]).fg(col_color[4].unwrap_or(comfy_table::Color::Reset)),
Cell::new(""),
]);
tb.add_row(vec![
Cell::new(odd_row.join("\n")).fg(col_color[4].unwrap_or(comfy_table::Color::Reset)),
Cell::new(even_row.join("\n")).fg(col_color[4].unwrap_or(comfy_table::Color::Reset)),
Cell::new(odd_col.join("\n")).fg(col_color[4].unwrap_or(comfy_table::Color::Reset)),
Cell::new(even_col.join("\n")).fg(col_color[4].unwrap_or(comfy_table::Color::Reset)),
]);
println!("{tb}");
}
Expand Down

0 comments on commit 2e7e107

Please sign in to comment.