File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,12 @@ and this project adheres to the
1010[ Python Version Specification] ( https://packaging.python.org/en/latest/specifications/version-specifiers/ ) .
1111See the [ Contributing Guide] ( contributing.md ) for details.
1212
13+ ## [ Unreleased]
14+
15+ ### Fixed
16+
17+ * Fix handling of incomplete HTML tags in code spans in Python 3.14.
18+
1319## [ 3.8.2] - 2025-06-19
1420
1521### Fixed
Original file line number Diff line number Diff line change 6969 )?
7070 \s* # trailing whitespace
7171""" , re .VERBOSE )
72+ htmlparser .locatetagend = re .compile (r"""
73+ [a-zA-Z][^`\t\n\r\f />]* # tag name
74+ [\t\n\r\f /]* # optional whitespace before attribute name
75+ (?:(?<=['"\t\n\r\f /])[^`\t\n\r\f />][^\t\n\r\f /=>]* # attribute name
76+ (?:= # value indicator
77+ (?:'[^']*' # LITA-enclosed value
78+ |"[^"]*" # LIT-enclosed value
79+ |(?!['"])[^>\t\n\r\f ]* # bare value
80+ )
81+ )?
82+ [\t\n\r\f /]* # possibly followed by a space
83+ )*
84+ >?
85+ """ , re .VERBOSE )
7286
7387# Match a blank line at the start of a block of text (two newlines).
7488# The newlines may be preceded by additional whitespace.
You can’t perform that action at this time.
0 commit comments