From: Guido van Rossum Date: Fri, 6 Oct 1995 15:30:57 +0000 (+0000) Subject: strip attribute values X-Git-Tag: v1.3~69 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=84175bacd194b3934962d596670a37a8aacd0dcc;p=thirdparty%2FPython%2Fcpython.git strip attribute values --- diff --git a/Lib/htmllib.py b/Lib/htmllib.py index c5c6f09e8b43..b689f9c26bec 100644 --- a/Lib/htmllib.py +++ b/Lib/htmllib.py @@ -322,6 +322,7 @@ class HTMLParser(SGMLParser): name = '' type = '' for attrname, value in attrs: + value = string.strip(value) if attrname == 'href': href = value if attrname == 'name':