From acff34cc9051a00598a23b85c351f64e0a18ca01 Mon Sep 17 00:00:00 2001 From: Reinhold Kainhofer Date: Fri, 11 Jun 2010 15:53:50 +0200 Subject: [PATCH] Lilypond-book: Allow hyphens in html snippet options --- python/book_html.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/book_html.py b/python/book_html.py index d3fa7e8db1..cf56dd5f49 100644 --- a/python/book_html.py +++ b/python/book_html.py @@ -101,7 +101,7 @@ class BookHTMLOutputFormat (BookBase.BookOutputFormat): def split_snippet_options (self, option_string): if option_string: - options = re.findall('[\w\.-:]+(?:\s*=\s*(?:"[^"]*"|\'[^\']*\'|\S+))?', + options = re.findall('[-\w\.-:]+(?:\s*=\s*(?:"[^"]*"|\'[^\']*\'|\S+))?', option_string) options = [re.sub('^([^=]+=\s*)(?P["\'])(.*)(?P=q)', '\g<1>\g<3>', opt) for opt in options] -- 2.39.2