From b2a7a04334a7f89f189be59d94b20b8df5dba7df Mon Sep 17 00:00:00 2001 From: Ezio Melotti Date: Thu, 14 Apr 2022 16:06:01 +0200 Subject: [PATCH] Add redirects to Misc/NEWS bpo links (GH-91454) (cherry picked from commit 17dbb6bc10ca8a8b602335414c047294f00afcbe) Co-authored-by: Ezio Melotti --- Doc/tools/extensions/pyspecific.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Doc/tools/extensions/pyspecific.py b/Doc/tools/extensions/pyspecific.py index 74de6ffa75559e..7c448310f47f6b 100644 --- a/Doc/tools/extensions/pyspecific.py +++ b/Doc/tools/extensions/pyspecific.py @@ -395,7 +395,8 @@ def run(self): text = 'The NEWS file is not available.' node = nodes.strong(text, text) return [node] - content = issue_re.sub(r'`bpo-\1 `__', + content = issue_re.sub(r'`bpo-\1 `__', content) content = whatsnew_re.sub(r'\1', content) # remove first 3 lines as they are the main heading