summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Sotoudeh <matthewsot@outlook.com>2021-12-27 09:43:28 -0800
committerMatthew Sotoudeh <matthewsot@outlook.com>2021-12-27 09:43:28 -0800
commita811dd5aab323a5bbd3ead58866fe246ea1af473 (patch)
tree753723913e0dc216d4e65b908af613baeca73e72
parentbde392442b3a7314cf386cd36b96af53e1c4e3d2 (diff)
Fix small bug
-rw-r--r--src/main.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 84f95bc..1464bc2 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -225,9 +225,11 @@ fn tasks_to_html(tasks: &Vec<Task>) -> String {
Some(idx) => {
if row_idx == 0 || table[(row_idx - 1) as usize][col_idx as usize] != task_idx {
let mut rowspan = 0;
- for i in rowspan..timespans_per_day {
+ for i in row_idx..timespans_per_day {
if table[i as usize][col_idx as usize] == task_idx {
rowspan += 1;
+ } else {
+ break;
}
}
html.push_str("<td class=\"has-task");
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback