From: Ezio Melotti Date: Thu, 14 Apr 2022 14:06:01 +0000 (+0200) Subject: Add redirects to Misc/NEWS bpo links (#91454) X-Git-Tag: v3.11.0b1~374 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=17dbb6bc10ca8a8b602335414c047294f00afcbe;p=thirdparty%2FPython%2Fcpython.git Add redirects to Misc/NEWS bpo links (#91454) --- diff --git a/Doc/tools/extensions/pyspecific.py b/Doc/tools/extensions/pyspecific.py index 9fb54bc6041a..80533a97b118 100644 --- a/Doc/tools/extensions/pyspecific.py +++ b/Doc/tools/extensions/pyspecific.py @@ -433,7 +433,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