From b38c9e51447725cdc15a6b9e761542353db2d0db Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Sat, 17 Apr 2010 20:09:45 +0000 Subject: [PATCH] Refine dump_notes usage svn: r15194 --- src/plugins/webreport/NarrativeWeb.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/plugins/webreport/NarrativeWeb.py b/src/plugins/webreport/NarrativeWeb.py index de8aa78f1..f428b28d7 100644 --- a/src/plugins/webreport/NarrativeWeb.py +++ b/src/plugins/webreport/NarrativeWeb.py @@ -338,7 +338,7 @@ class BasePage(object): ("AttrValue", attr.get_value() ) ] # get attribute note list - notelist = self.dump_notes(attr.get_note_list() ) or " " + notelist = self.dump_notes(attr.get_note_list() ) attr_data_row.append(("AttrNotes", notelist)) if showsrc: @@ -443,7 +443,7 @@ class BasePage(object): """ if not notelist: - return " " + return Html("p") db = self.report.database # begin unordered list @@ -505,7 +505,7 @@ class BasePage(object): if notelist: htmllist = self.dump_notes( notelist ) else: - htmllist = " " + htmllist = Html("p") # if the event or event reference has a attributes attached to it, # get the text and format it correctly @@ -520,7 +520,7 @@ class BasePage(object): #also output notes attached to the attributes notelist = attr.get_note_list() if notelist: - htmllist.extend ( self.dump_notes( notelist ) or " " ) + htmllist.extend (self.dump_notes( notelist )) trow += Html("td", htmllist, class_ = "ColumnNotes")