]> git.donarmstrong.com Git - lilypond.git/commitdiff
(Lilypond_snippet.__init__):
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Wed, 6 Apr 2005 12:59:43 +0000 (12:59 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Wed, 6 Apr 2005 12:59:43 +0000 (12:59 +0000)
only process options fi they're there.

ChangeLog
scripts/lilypond-book.py

index 4f3a33256ee0e781271b171f65f3638110bfac00..a63f208424f30c7efcd41440f6ea33c03436caf9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-04-06  Han-Wen Nienhuys  <hanwen@xs4all.nl>
+
+       * scripts/lilypond-book.py (Lilypond_snippet.__init__): 
+       only process options fi they're there.
+
 2005-04-06  Jan Nieuwenhuizen  <jan.nieuwenhuizen@aspiratie.nl>
 
        * scripts/lilypond-book.py (split_options): Bugfix.  Small code
index c46c0b7c9aa8e658845dbc760284b44eb18768d4..48f04c345641cccf74e2e8cb99ac0e856a0b34c3 100644 (file)
@@ -677,7 +677,8 @@ class Lilypond_snippet (Snippet):
        def __init__ (self, type, match, format, line_number):
                Snippet.__init__ (self, type, match, format, line_number)
                os = match.group ('options')
-               self.do_options (os, self.type)
+               if os:
+                       self.do_options (os, self.type)
 
        def ly (self):
                return self.substring ('code')