Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77d1fce commit de2f708Copy full SHA for de2f708
1 file changed
Lib/sgmllib.py
@@ -30,12 +30,12 @@
30
endbracket = re.compile('[<>]')
31
special = re.compile('<![^<>]*>')
32
commentopen = re.compile('<!--')
33
-commentclose = re.compile('--[ \t\n]*>')
+commentclose = re.compile('--[%s]*>' % string.whitespace)
34
tagfind = re.compile('[a-zA-Z][a-zA-Z0-9]*')
35
attrfind = re.compile(
36
- '[ \t\n]+([a-zA-Z_][-.a-zA-Z_0-9]*)'
37
- '([ \t\n]*=[ \t\n]*'
38
- r'(\'[^\']*\'|"[^"]*"|[-a-zA-Z0-9./:+*%?!\(\)_#=~]*))?')
+ '[ \t\n\r]+([a-zA-Z_][-.a-zA-Z_0-9]*)'
+ + ('([%s]*=[%s]*' % (string.whitespace, string.whitespace))
+ + r'(\'[^\']*\'|"[^"]*"|[-a-zA-Z0-9./:+*%?!\(\)_#=~]*))?')
39
40
41
# SGML parser base class -- find tags and call handler functions.
0 commit comments