Compare commits

...

2 Commits

Author SHA1 Message Date
DuckDuckWhale
0f97534ec5 Git: ignore workspace folder 2020-11-27 02:29:45 -08:00
DuckDuckWhale
5a147db4c5 Fix: excess whitespace in certain cases 2020-11-27 02:27:06 -08:00
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
/target /target
/time-tracker-token /time-tracker-token
/workspace

View File

@ -66,7 +66,7 @@ fn main() {
times.len(), times.len(),
if times.is_empty() { '.' } else { ':' } if times.is_empty() { '.' } else { ':' }
); );
if let Some(max_title_len) = times.iter().map(|(_, title)| title.len()).max() { if let Some(max_title_len) = times.iter().map(|(_, title)| title.width()).max() {
let max_len = max_title_len + 2; let max_len = max_title_len + 2;
println!("┌──────────┬{}", "".repeat(max_len)); println!("┌──────────┬{}", "".repeat(max_len));
for (time, title) in times { for (time, title) in times {