mirror of https://gitlab.com/bashrc2/epicyon
Check for blank last row of calendar
parent
e7da255a5f
commit
7ef0a275f0
|
@ -6647,7 +6647,9 @@ def htmlCalendar(translate: {},
|
||||||
dayOfMonth = 0
|
dayOfMonth = 0
|
||||||
dow = weekDayOfMonthStart(monthNumber, year)
|
dow = weekDayOfMonthStart(monthNumber, year)
|
||||||
for weekOfMonth in range(1, 7):
|
for weekOfMonth in range(1, 7):
|
||||||
calendarStr += ' <tr>\n'
|
if dayOfMonth == daysInMonth:
|
||||||
|
continue
|
||||||
|
calendarStr += ' <tr>\n'
|
||||||
for dayNumber in range(1, 8):
|
for dayNumber in range(1, 8):
|
||||||
if (weekOfMonth > 1 and dayOfMonth < daysInMonth) or \
|
if (weekOfMonth > 1 and dayOfMonth < daysInMonth) or \
|
||||||
(weekOfMonth == 1 and dayNumber >= dow):
|
(weekOfMonth == 1 and dayNumber >= dow):
|
||||||
|
|
Loading…
Reference in New Issue