witten
/
luminotes
Archived
1
0
Fork 0

Fixed bug in Html_cleaner which produced broken tags like "<br/>" instead of "<br />"

This commit is contained in:
Dan Helfman 2008-05-02 18:56:03 +00:00
parent 7a2936f857
commit e052e3b357
1 changed files with 1 additions and 1 deletions

View File

@ -194,7 +194,7 @@ class Html_cleaner(HTMLParser):
if bt == "<a" or bt == "<img":
return
if tag in self.requires_no_close:
bt += "/"
bt += " /"
bt += ">"
self.result.append( bt )
self.open_tags.insert(0, tag)