From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Tue, 10 May 2022 04:05:14 +0000 (-0700) Subject: Add redirects to Misc/NEWS bpo links (GH-91454) (GH-91894) X-Git-Tag: v3.7.14~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5da1197d51871cc7bb97a0de4d9bf99664579671;p=thirdparty%2FPython%2Fcpython.git Add redirects to Misc/NEWS bpo links (GH-91454) (GH-91894) (cherry picked from commit 17dbb6bc10ca8a8b602335414c047294f00afcbe) Co-authored-by: Ezio Melotti --- diff --git a/Doc/tools/extensions/pyspecific.py b/Doc/tools/extensions/pyspecific.py index 4dd178619803..37e2a696cfa1 100644 --- a/Doc/tools/extensions/pyspecific.py +++ b/Doc/tools/extensions/pyspecific.py @@ -313,7 +313,8 @@ class MiscNews(Directive): 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