fix off-by-one colspan for January - fixes #586

Tue, 18 Feb 2025 18:37:33 +0100

author
Mike Becker <universe@uap-core.de>
date
Tue, 18 Feb 2025 18:37:33 +0100
changeset 26
0b3a92df96db
parent 25
b8d6b14c1555
child 27
d2eee642a31b

fix off-by-one colspan for January - fixes #586

src/html.cpp file | annotate | diff | comparison | revisions
--- a/src/html.cpp	Tue Feb 18 18:30:47 2025 +0100
+++ b/src/html.cpp	Tue Feb 18 18:37:33 2025 +0100
@@ -150,10 +150,6 @@
     {
         unsigned total_cols = 0;
         sys_days day{year_month_day{y, January, 1d}};
-        if (weekday{day}.iso_encoding() != 1) {
-            colspans[0] = 1;
-            total_cols = 1;
-        }
         for (unsigned col = 0; col < 12; ++col) {
             while (total_cols < html::columns && year_month_day{day}.month() <= month{col + 1}) {
                 ++total_cols;

mercurial