From c0f3cf1084a36c1fabf5c99734e2bda53b871935 Mon Sep 17 00:00:00 2001 From: Michiel Nauta Date: Fri, 9 Sep 2011 19:09:06 +0000 Subject: [PATCH] 5209: Narrated Web Site - Mainz - Year At A Glance - Rendering Error svn: r18129 --- 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 70b469abc..acf20d69e 100644 --- a/src/plugins/webreport/WebCal.py +++ b/src/plugins/webreport/WebCal.py @@ -823,8 +823,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() # One has to be minused because the array starts at zero, but January =1 @@ -888,17 +890,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() @@ -949,11 +950,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)