]> git.donarmstrong.com Git - lilypond.git/commitdiff
texi2html: Properly fix internal links in the big snippets page
authorReinhold Kainhofer <reinhold@kainhofer.com>
Mon, 11 Aug 2008 19:59:58 +0000 (21:59 +0200)
committerReinhold Kainhofer <reinhold@kainhofer.com>
Mon, 11 Aug 2008 19:59:58 +0000 (21:59 +0200)
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

index a1c81f3b14668ba0fdb57522a7b333a9af59423f..7c962dc47eab6db8b0cd5210fc040c249d4abd03 100644 (file)
@@ -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