From 8b1d7c5b57812fa8f5b8187d9b7462f177db7db7 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Tue, 23 Aug 2022 16:54:49 +0200 Subject: [PATCH] fix hour column with big cell --- src/utils.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/utils.rs b/src/utils.rs index 6e30daa..c1f5a44 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -58,8 +58,13 @@ pub fn line_table( .to_string() .repeat(cell_length_hours); - // Print the line - print!("\n{}{}{}", ls, line_h, ms); + // Hours column + match skip_with.get(&0) { + Some(_) => print!("\n{}{}{}", ls, line_h, rs_bbc), + None => print!("\n{}{}{}", ls, line_h, ms), + }; + + // Courses columns for i in 0..number_cell - 2 { // Check if it's a big cell match skip_with.get(&i) {