From 9fc2132293bee609c508117b19e4f2a6f094320d Mon Sep 17 00:00:00 2001 From: leo60228 Date: Mon, 3 Jun 2024 14:39:25 -0400 Subject: [PATCH] Fix fix_links.py (#4711) Autolinks were getting discarded when lowercasing anchors, oops. --- docs/fix_links.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/fix_links.py b/docs/fix_links.py index c48cab4e0e..6e2eaec485 100644 --- a/docs/fix_links.py +++ b/docs/fix_links.py @@ -36,7 +36,7 @@ def proc_items(items): s = s.replace('](README.md)', '](./)') s = s.replace('](/INSTALL.md', '](INSTALL.md') s = s.replace('](docs/', '](') - item['Chapter']['content'] = URL_RE.sub(handle_url, s) + s = URL_RE.sub(handle_url, s) item['Chapter']['content'] = ANCHOR_RE.sub(handle_anchor, s) proc_items(item['Chapter']['sub_items'])