Skip to content

Commit c91c5ce

Browse files
Increase HTML standard compliance for closing comment tags
1 parent bfc57d4 commit c91c5ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/_markupbase.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
_declname_match = re.compile(r'[a-zA-Z][-_.a-zA-Z0-9]*\s*').match
1111
_declstringlit_match = re.compile(r'(\'[^\']*\'|"[^"]*")\s*').match
12-
_commentclose = re.compile(r'--\s*>')
12+
_commentclose = re.compile(r'--!?>')
1313
_markedsectionclose = re.compile(r']\s*]\s*>')
1414

1515
# An analysis of the MS-Word extensions is available at

0 commit comments

Comments
 (0)