X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=python%2Fbook_html.py;h=ac70b743a0e3a91727f3ee099b5026056b028bbb;hb=1438d4ba7af3804451f2ae6abaad3ec0537b3484;hp=cf56dd5f49ae92b1bc69058a59f49a9f27117638;hpb=e90f0536f9be39ada0bef0aeb0d275dec3b2fb5b;p=lilypond.git
diff --git a/python/book_html.py b/python/book_html.py
index cf56dd5f49..ac70b743a0 100644
--- a/python/book_html.py
+++ b/python/book_html.py
@@ -40,6 +40,13 @@ HTML_snippet_res = {
'multiline_comment':
r'''(?smx)(?P)\s)''',
+ 'musicxml_file':
+ r'''(?mx)
+ (?P
.*?
))''',
@@ -62,7 +69,7 @@ HTML_output = {
- ''',
+ ''',
OUTPUT: r'''
''',
- PRINTFILENAME: '',
+ PRINTFILENAME: '',
QUOTE: r'''
%(str)s
@@ -118,6 +125,8 @@ class BookHTMLOutputFormat (BookBase.BookOutputFormat):
str = ''
rep = snippet.get_replacements ();
rep['base'] = basename
+ rep['filename'] = os.path.basename (snippet.filename)
+ rep['ext'] = snippet.ext
str += self.output_print_filename (basename, snippet)
if VERBATIM in snippet.option_dict:
rep['verb'] = BookBase.verbatim_html (snippet.verb_ly ())