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
10
10
[ Python Version Specification] ( https://packaging.python.org/en/latest/specifications/version-specifiers/ ) .
11
11
See the [ Contributing Guide] ( contributing.md ) for details.
12
12
13
+ ## [ Unreleased]
14
+
15
+ ### Fixed
16
+
17
+ * Fix handling of incomplete HTML tags in code spans in Python 3.14.
18
+
13
19
## [ 3.8.2] - 2025-06-19
14
20
15
21
### Fixed
Original file line number Diff line number Diff line change 69
69
)?
70
70
\s* # trailing whitespace
71
71
""" , 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 )
72
86
73
87
# Match a blank line at the start of a block of text (two newlines).
74
88
# The newlines may be preceded by additional whitespace.
You can’t perform that action at this time.
0 commit comments