From 837b179c7229b76b2ec88938115831af88199f51 Mon Sep 17 00:00:00 2001 From: Reinhold Kainhofer Date: Mon, 11 Aug 2008 21:59:58 +0200 Subject: [PATCH] texi2html: Properly fix internal links in the big snippets page Don't rewrite html links to lilypond-snippets* in the snippets page. The problem was that we used the regexp lilypond(|...), which was also matched by lilypond-snippets. The solution (thanks to John) is to add a negative lookahead to exclude -snippets... --- buildscripts/add_html_footer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildscripts/add_html_footer.py b/buildscripts/add_html_footer.py index a1c81f3b14..7c962dc47e 100644 --- a/buildscripts/add_html_footer.py +++ b/buildscripts/add_html_footer.py @@ -94,7 +94,7 @@ def source_links_replace (m, source_val): splitted_docs_re = re.compile ('(input/lsr/out-www/lilypond-snippets|Documentation/user/out-www/(lilypond|music-glossary|lilypond-program|lilypond-learning))/') snippets_ref_re = re.compile (r'href="(\.\./)?lilypond-snippets') -user_ref_re = re.compile (r'href="(?:\.\./)?lilypond(|-internals|-learning|-program)') +user_ref_re = re.compile (r'href="(?:\.\./)?lilypond(?!-snippets)(|-internals|-learning|-program)') ## Windows does not support symlinks. # This function avoids creating symlinks for splitted HTML manuals -- 2.39.5