@@ -434,16 +434,16 @@ def index_doc(filter_tags, doc_list, get_content)
434434 content = expand_content ( ( get_content . call sha ) . force_encoding ( "UTF-8" ) , path , get_content_f , generated , ext )
435435 # Handle `link:../howto/maintain-git.txt`, which should point to
436436 # a `.html` target instead
437- content . gsub! ( /link:\. \. \/ howto\/ maintain-git\. #{ ext } / , 'link:../howto/maintain-git.html' )
437+ content . gsub! ( /link:\. \. \/ howto\/ maintain-git\. txt / , 'link:../howto/maintain-git.html' )
438438 # Handle `gitlink:` mistakes (the last of which was fixed in
439439 # dbf47215e32b (rebase docs: fix "gitlink" typo, 2019-02-27))
440440 content . gsub! ( /gitlink:/ , "linkgit:" )
441441 # Handle erroneous `link:api-trace2.txt`, see 4945f046c7f5 (api docs:
442442 # link to html version of api-trace2, 2022-09-16)
443- content . gsub! ( /link:api-trace2.#{ ext } / , 'link:api-trace2.html' )
443+ content . gsub! ( /link:api-trace2.txt / , 'link:api-trace2.html' )
444444 # Handle `linkgit:git-config.txt` mistake, fixed in ad52148a7d0
445445 # (Documentation: fix broken linkgit to git-config, 2016-03-21)
446- content . gsub! ( /linkgit:git-config.#{ ext } / , 'linkgit:git-config' )
446+ content . gsub! ( /linkgit:git-config.txt / , 'linkgit:git-config' )
447447 content . gsub! ( /link:(?:technical\/ )?(\S *?)\. html(\# \S *?)?\[ (.*?)\] /m , "link:/docs/\\ 1\\ 2[\\ 3]" )
448448
449449 asciidoc = make_asciidoc ( content )
0 commit comments