Add code to html.py to auto-close certain tags to meet XHTML standard

svn: r12272
This commit is contained in:
Gerald Britton 2009-03-09 15:18:51 +00:00
parent 0e6d1d8496
commit e1316aa89c

View File

@ -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,