]> git.donarmstrong.com Git - lilypond.git/commitdiff
postprocess_html.py: Have lily_snippets_re only match snippets. Fixes images.
authorJan Nieuwenhuizen <janneke@gnu.org>
Fri, 14 Aug 2009 11:52:32 +0000 (13:52 +0200)
committerJan Nieuwenhuizen <janneke@gnu.org>
Fri, 14 Aug 2009 11:58:28 +0000 (13:58 +0200)
This enables having images not getting prefixed with `../', as we need
for general/examples.  This also makes the code less obfuscated, as
pictures_re is now no longer a no-op.

python/auxiliar/postprocess_html.py

index a8f6c78ae12965268f0dd87fc6c39c7d67c9ed97..c26d7473e2efb8c3274e2299238c0686c571b95d 100644 (file)
@@ -101,7 +101,7 @@ def source_links_replace (m, source_val):
 
 # More hardcoding, yay!
 splitted_docs_re = re.compile ('(Documentation/out-www/(automated-engraving|essay|notation|music-glossary|application|general|learning|snippets))/')
-lily_snippets_re = re.compile ('(href|src)="(../lily-.*?|.*?[.]png)"')
+lily_snippets_re = re.compile ('(href|src)="([0-9a-f]{2}/lily-.*?)"')
 pictures_re = re.compile ('src="(pictures/.*?)"')
 
 docindex_link_re = re.compile (r'href="index.html"')