Add code to html.py to auto-close certain tags to meet XHTML standard
svn: r12272
This commit is contained in:
		@@ -62,6 +62,9 @@ class Html(list):
 | 
				
			|||||||
            self += [tag]
 | 
					            self += [tag]
 | 
				
			||||||
            self.end = None
 | 
					            self.end = None
 | 
				
			||||||
        else: 
 | 
					        else: 
 | 
				
			||||||
 | 
					            if tag in ['area','base','br','frame','hr',
 | 
				
			||||||
 | 
					                       'img','input','link','meta','param']:
 | 
				
			||||||
 | 
					                close = False
 | 
				
			||||||
            begin = '<%s%s%s>' % (
 | 
					            begin = '<%s%s%s>' % (
 | 
				
			||||||
                tag,
 | 
					                tag,
 | 
				
			||||||
                attr,
 | 
					                attr,
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user