X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=scripts%2Flilypond-book.py;h=64a90310b715c317b19f57e42b1339e0e7f2c5d8;hb=be6c990b752b8f9619988d870794ba779c9fe807;hp=202af654087c5e9fe5931f8eb36e2d70669375fe;hpb=1f0dbc5ce41f4fa5aecc2994452b58ba42ca558c;p=lilypond.git diff --git a/scripts/lilypond-book.py b/scripts/lilypond-book.py index 202af65408..64a90310b7 100644 --- a/scripts/lilypond-book.py +++ b/scripts/lilypond-book.py @@ -126,7 +126,7 @@ def warranty (): %s %s -''' % ( _ ('Copyright (c) %s by') % '2001--2009', +''' % ( _ ('Copyright (c) %s by') % '2001--2010', '\n '.join (authors), _ ("Distributed under terms of the GNU General Public License."), _ ("It comes with NO WARRANTY."))) @@ -390,9 +390,9 @@ snippet_res = { r'''(?mx) (?P .*?)\s*:)?\s* + (\s+(?P.*?))?\s*:\s* (?P.*?) - />)''', + \s*/>)''', 'lilypond_block': r'''(?msx) @@ -401,7 +401,7 @@ snippet_res = { \s*(?P.*?)\s* > (?P.*?) - )''', + )''', 'lilypond_file': r'''(?mx) @@ -410,7 +410,7 @@ snippet_res = { \s*(?P.*?)\s* > \s*(?P.*?)\s* - )''', + )''', 'multiline_comment': r'''(?smx) @@ -1205,10 +1205,11 @@ left-margin-default right-margin-default)" option_list = [] for option in self.get_option_list (): for name in PROCESSING_INDEPENDENT_OPTIONS: - if not option.startswith (name): - option_list.append (option) + if option.startswith (name): + break + else: + option_list.append (option) option_string = ','.join (option_list) - compose_dict = {} compose_types = [NOTES, PREAMBLE, LAYOUT, PAPER] for a in compose_types: @@ -1285,8 +1286,10 @@ left-margin-default right-margin-default)" hash = md5 (self.relevant_contents (self.ly ())) for option in self.get_option_list (): for name in PROCESSING_INDEPENDENT_OPTIONS: - if not option.startswith (name): - hash.update (option) + if option.startswith (name): + break + else: + hash.update (option) ## let's not create too long names. self.checksum = hash.hexdigest ()[:10]