From 281ebad8c297f366d4a06e3fb9d4035cd4de6612 Mon Sep 17 00:00:00 2001 From: Michiel Nauta Date: Fri, 9 Sep 2011 19:09:44 +0000 Subject: [PATCH] 5209: Narrated Web Site - Mainz - Year At A Glance - Rendering Error svn: r18130 --- src/plugins/webreport/WebCal.py | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/src/plugins/webreport/WebCal.py b/src/plugins/webreport/WebCal.py index bae1cfa46..9fb359a89 100644 --- a/src/plugins/webreport/WebCal.py +++ b/src/plugins/webreport/WebCal.py @@ -867,8 +867,10 @@ class WebCalReport(Report): body += self.month_navigation(nr_up, year, currentsection, True) # build the calendar + content = Html("div", class_="content") + body += content monthly_calendar = self.calendar_build("wc", year, month) - body += monthly_calendar + content += monthly_calendar # create note section for webcalendar() note = self.month_notes[month-1].strip() @@ -934,17 +936,16 @@ class WebCalReport(Report): 'that date, if there are any.\n')) # page description - body += Html("div", class_ = "content") + ( - - # message line + content = Html("div", class_ = "content") + ( Html("p", msg, id='description') ) + body += content for month in range(1, 13): # build the calendar monthly_calendar = self.calendar_build("yg", year, month) - body += monthly_calendar + content += monthly_calendar # increase progress bar self.progress.step() @@ -998,11 +999,13 @@ class WebCalReport(Report): body += self.month_navigation(nr_up, year, currentsection, True) # set date display as in user prevferences - body += Html("h3", _dd.display(event_date), inline = True) + content = Html("div", class_="content") + body += content + content += Html("h3", _dd.display(event_date), inline = True) # list the events ordered = Html("ol") - body += ordered + content += ordered for nyears, date, text, event in day_list: ordered += Html("li", text, inline = False if event == 'Anniversary' else True)