This commit is contained in:
Kovid Goyal 2011-12-20 11:21:53 +05:30
parent bd741c1934
commit ba393182f6

View File

@ -946,7 +946,8 @@ class Manifest(object):
# ones, as they are interpreted incorrectly by some browser # ones, as they are interpreted incorrectly by some browser
# based renderers # based renderers
ans = re.sub( ans = re.sub(
r'<(?P<tag>div|a|span)(?=[\s/])(?P<arg>[^>]*)/\s*>', # tag name followed by either a space or a /
r'<(?P<tag>div|a|span)(?=[\s/])(?P<arg>[^>]*)/>',
r'<\g<tag>\g<arg>></\g<tag>>', ans) r'<\g<tag>\g<arg>></\g<tag>>', ans)
return ans return ans
if isinstance(data, unicode): if isinstance(data, unicode):