bin/gen_release_notes: fix regex raw string
Fixes:ba6336ce3e
("docs: use version-number as toctree-title for relnotes") Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26468> (cherry picked from commit2a6d750a53
)
This commit is contained in:

committed by
Eric Engestrom

parent
4de4ba5384
commit
ddfd0618d6
@@ -114,7 +114,7 @@
|
||||
"description": "bin/gen_release_notes: fix regex raw string",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "ba6336ce3e6fa8f32c558fbaeefc4b5a5c4d3beb",
|
||||
"notes": null
|
||||
|
@@ -325,7 +325,7 @@ def update_release_notes_index(version: str) -> None:
|
||||
first_list = False
|
||||
new_relnotes.append(f'- :doc:`{version} release notes <relnotes/{version}>`\n')
|
||||
if (not first_list and second_list and
|
||||
re.match(' \d+.\d+(.\d+)? <relnotes/\d+.\d+(.\d+)?>', line)):
|
||||
re.match(r' \d+.\d+(.\d+)? <relnotes/\d+.\d+(.\d+)?>', line)):
|
||||
second_list = False
|
||||
new_relnotes.append(f' {version} <relnotes/{version}>\n')
|
||||
new_relnotes.append(line)
|
||||
|
Reference in New Issue
Block a user