From: Jan Nieuwenhuizen Date: Fri, 14 Aug 2009 11:52:32 +0000 (+0200) Subject: postprocess_html.py: Have lily_snippets_re only match snippets. Fixes images. X-Git-Tag: release/2.13.4-1~179^2~67 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=375c0be42300202d2f4b631f5302d817b8a91c60;p=lilypond.git postprocess_html.py: Have lily_snippets_re only match snippets. Fixes images. 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. --- diff --git a/python/auxiliar/postprocess_html.py b/python/auxiliar/postprocess_html.py index a8f6c78ae1..c26d7473e2 100644 --- a/python/auxiliar/postprocess_html.py +++ b/python/auxiliar/postprocess_html.py @@ -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"')