From: Reinhold Kainhofer Date: Mon, 11 Aug 2008 19:59:58 +0000 (+0200) Subject: texi2html: Properly fix internal links in the big snippets page X-Git-Tag: release/2.11.58-1~32^2~63 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=837b179c7229b76b2ec88938115831af88199f51;p=lilypond.git 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... --- 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