X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=scripts%2Flilypond-book.py;h=b4bd319a690d3b35aa27b969a7d0b4edd2d0435a;hb=64d1b027766ff5151277657193d64383086be9f3;hp=202af654087c5e9fe5931f8eb36e2d70669375fe;hpb=b38543766c067e06f65df471b30893dd4a486248;p=lilypond.git diff --git a/scripts/lilypond-book.py b/scripts/lilypond-book.py index 202af65408..b4bd319a69 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) @@ -960,7 +960,7 @@ def verb_ly_gettext (s): if langdefs.LANGDICT[document_language].enable_ly_identifier_l10n: for v in ly_var_def_re.findall (s): - s = re.sub (r"(?m)(^|[' \\#])%s([^a-zA-Z])" % v, + s = re.sub (r"(?m)(?