]> git.donarmstrong.com Git - lilypond.git/commitdiff
Fix lilypond-book <lilypond> option handling.
authorChristian Hitz <christian@klarinett.li>
Sun, 14 Feb 2010 14:07:00 +0000 (15:07 +0100)
committerGraham Percival <graham@percival-music.ca>
Sun, 14 Feb 2010 23:51:53 +0000 (23:51 +0000)
* require a space before any options
* require the presence of the colon

Fixes <lilypondversion/>, too.

scripts/lilypond-book.py

index 862307531d9518fb5ec971575d90ee947f1aee7e..64a90310b715c317b19f57e42b1339e0e7f2c5d8 100644 (file)
@@ -390,7 +390,7 @@ snippet_res = {
          r'''(?mx)
           (?P<match>
           <lilypond
-           (\s*(?P<options>.*?)\s*:)?\s*
+           (\s+(?P<options>.*?))?\s*:\s*
            (?P<code>.*?)
           \s*/>)''',