From 375c0be42300202d2f4b631f5302d817b8a91c60 Mon Sep 17 00:00:00 2001 From: Jan Nieuwenhuizen Date: Fri, 14 Aug 2009 13:52:32 +0200 Subject: [PATCH] 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. --- python/auxiliar/postprocess_html.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"') -- 2.39.5