1
0
Fork 0
mirror of https://codeberg.org/demostf/parser.git synced 2026-11-30 02:30:46 +01:00

compress string tables

This commit is contained in:
Robin Appelman 2026-10-28 00:09:51 +01:00
commit 7b480bc844
Signed by: robin
SSH key fingerprint: SHA256:kifqgrqnut7q1YUIrI0AdMNC23qiKAS/T9uGFmIYvbE
2 changed files with 20 additions and 8 deletions

View file

@ -55,7 +55,7 @@ fn main() -> Result<(), MainError> {
println!("{header:?}");
let table_header = "Player | Points | Kills | Deaths | Assists | Destruction | Captures | Defenses | Domination | Revenge | Ubers | Headshots | Teleports | Healing | Backstabs | Bonus | Support | Damage Dealt";
let divider = "---------------------------------|------------|------------|------------|------------|-------------|------------|------------|------------|------------|------------|------------|------------|------------|------------|------------|------------|-------------";
let divider = "---------------------------------|------------|------------|------------|------------|-------------|------------|------------|------------|------------|------------|------------|------------|------------|------------|------------|------------|-------------";
println!("{table_header}");
println!("{divider}");
@ -74,7 +74,6 @@ fn main() -> Result<(), MainError> {
println!(
"{}{:32} | {:10} | {:10} | {:10} | {:10} | {:11} | {:10} | {:10} | {:10} | {:10} | {:10} | {:10} | {:10} | {:10} | {:10} | {:10} | {:10} | {:12}{}",
color_code_start,
player_name,
s.points,
s.kills,
@ -93,7 +92,6 @@ fn main() -> Result<(), MainError> {
s.bonus_points,
s.support,
s.damage_dealt,
color_code_end,
);
}