From e1316aa89c373b5e6f110801c32403e144c98d4b Mon Sep 17 00:00:00 2001 From: Gerald Britton Date: Mon, 9 Mar 2009 15:18:51 +0000 Subject: [PATCH] Add code to html.py to auto-close certain tags to meet XHTML standard svn: r12272 --- src/plugins/webreport/html.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/plugins/webreport/html.py b/src/plugins/webreport/html.py index 47366ef18..283a8b4bf 100644 --- a/src/plugins/webreport/html.py +++ b/src/plugins/webreport/html.py @@ -61,7 +61,10 @@ class Html(list): if tag[0] == '<': self += [tag] self.end = None - else: + else: + if tag in ['area','base','br','frame','hr', + 'img','input','link','meta','param']: + close = False begin = '<%s%s%s>' % ( tag, attr,