From a72cdfbfe4fc83134c2b4a3db02e0c9513a85219 Mon Sep 17 00:00:00 2001 From: Ezio Melotti Date: Mon, 11 Apr 2022 21:55:46 +0200 Subject: [PATCH] Add redirects to Misc/NEWS bpo links --- 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 9fb54bc6041abd..80533a97b11890 100644 --- a/Doc/tools/extensions/pyspecific.py +++ b/Doc/tools/extensions/pyspecific.py @@ -433,7 +433,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