From e0431f3036e85764f05e3860a6b70ec0606584eb Mon Sep 17 00:00:00 2001 From: Han-Wen Nienhuys Date: Wed, 6 Apr 2005 12:59:43 +0000 Subject: [PATCH] (Lilypond_snippet.__init__): only process options fi they're there. --- ChangeLog | 5 +++++ scripts/lilypond-book.py | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 4f3a33256e..a63f208424 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-04-06 Han-Wen Nienhuys + + * scripts/lilypond-book.py (Lilypond_snippet.__init__): + only process options fi they're there. + 2005-04-06 Jan Nieuwenhuizen * scripts/lilypond-book.py (split_options): Bugfix. Small code diff --git a/scripts/lilypond-book.py b/scripts/lilypond-book.py index c46c0b7c9a..48f04c3456 100644 --- a/scripts/lilypond-book.py +++ b/scripts/lilypond-book.py @@ -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') -- 2.39.5