From ff2ede01785de015c2b3ba28f70851dc6a31db8c Mon Sep 17 00:00:00 2001 From: Kiana Sheibani Date: Tue, 30 Jan 2024 14:49:14 -0500 Subject: [PATCH] Remove unnecessary output padding --- src/main.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main.rs b/src/main.rs index 1cb95c4..586e96d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -160,7 +160,7 @@ fn dataset_list(connection: &Connection) { for (name, metadata) in datasets { print!( - "\n· \x1b[1m\x1b[34m{}\x1b[0m + "· \x1b[1m\x1b[34m{}\x1b[0m \x1b[4m\x1b]8;;https://www.start.gg/{}\x1b\\{}\x1b]8;;\x1b\\\x1b[0m ", name, metadata.game_slug, metadata.game_name ); @@ -235,7 +235,7 @@ fn dataset_list(connection: &Connection) { "\x1b[1mRating Period:\x1b[0m {} days", metadata.period / SECS_IN_DAY as f64 ); - println!("\x1b[1mTau Constant:\x1b[0m {}", metadata.tau); + println!("\x1b[1mTau Constant:\x1b[0m {}\n", metadata.tau); } } @@ -593,7 +593,6 @@ fn player_info(connection: &Connection, dataset: Option, player: String) let (won, lost) = get_player_set_counts(connection, &dataset, id) .unwrap_or_else(|_| error("Could not find player", 1)); - println!(); if let Some(pre) = prefix { print!("\x1b[2m{}\x1b[22m ", pre); } @@ -680,7 +679,6 @@ fn player_matchup( let len1 = prefix1.as_deref().map(|s| s.len() + 1).unwrap_or(0) + name1.len(); let len2 = prefix2.as_deref().map(|s| s.len() + 1).unwrap_or(0) + name2.len(); - println!(); if let Some(pre) = prefix1 { print!("\x1b[2m{}\x1b[22m ", pre); }