File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed
Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -10,10 +10,11 @@ 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 ] - Unreleased
13+ ## [ Unreleased]
1414
1515### Fixed
1616
17+ * Fix handling of incomplete HTML tags in code spans in Python 3.14.
1718* Fix issue with footnote ordering (#1367 ).
1819
1920## [ 3.8.2] - 2025-06-19
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