]> git.donarmstrong.com Git - lilypond.git/commitdiff
Fix issue 1011.
authorChristian Hitz <christian@klarinett.li>
Sat, 13 Feb 2010 11:59:14 +0000 (12:59 +0100)
committerGraham Percival <graham@percival-music.ca>
Sat, 13 Feb 2010 19:47:07 +0000 (19:47 +0000)
Make lilypond-book handle spaces before the closing '>'
bracket as allowed by the HTML standard.

scripts/lilypond-book.py

index a5832ca99b746c01ff6e0262e5ec069581cd5399..862307531d9518fb5ec971575d90ee947f1aee7e 100644 (file)
@@ -392,7 +392,7 @@ snippet_res = {
           <lilypond
            (\s*(?P<options>.*?)\s*:)?\s*
            (?P<code>.*?)
-          />)''',
+          \s*/>)''',
 
         'lilypond_block':
          r'''(?msx)
@@ -401,7 +401,7 @@ snippet_res = {
            \s*(?P<options>.*?)\s*
           >
           (?P<code>.*?)
-          </lilypond>)''',
+          </lilypond\s*>)''',
 
         'lilypond_file':
          r'''(?mx)
@@ -410,7 +410,7 @@ snippet_res = {
            \s*(?P<options>.*?)\s*
           >
           \s*(?P<filename>.*?)\s*
-          </lilypondfile>)''',
+          </lilypondfile\s*>)''',
 
         'multiline_comment':
          r'''(?smx)