diff --git a/webinterface.py b/webinterface.py index 6bba941d2..778565009 100644 --- a/webinterface.py +++ b/webinterface.py @@ -6647,7 +6647,9 @@ def htmlCalendar(translate: {}, dayOfMonth = 0 dow = weekDayOfMonthStart(monthNumber, year) for weekOfMonth in range(1, 7): - calendarStr += ' \n' + if dayOfMonth == daysInMonth: + continue + calendarStr += ' \n' for dayNumber in range(1, 8): if (weekOfMonth > 1 and dayOfMonth < daysInMonth) or \ (weekOfMonth == 1 and dayNumber >= dow):