]> git.donarmstrong.com Git - lilypond.git/commitdiff
Improve makelsr.py verbatim marking
authorJohn Mandereau <john.mandereau@gmail.com>
Sun, 6 Jan 2008 15:34:43 +0000 (16:34 +0100)
committerJohn Mandereau <john.mandereau@gmail.com>
Sun, 6 Jan 2008 15:34:43 +0000 (16:34 +0100)
buildscripts/makelsr.py

index 7d8120a1ea827e28888c9c74c649f5272d03f560..366653cfeb7831654da99c2623bf4900f87d4f78 100755 (executable)
@@ -51,7 +51,7 @@ unconverted = []
 notags_files = []
 
 # mark the section that will be printed verbatim by lilypond-book
-end_header_re = re.compile ('(\\header {.*?}\n)\n', re.M | re.S)
+end_header_re = re.compile ('(\\header {.*?"\\s*}\n)\n', re.M | re.S)
 
 def mark_verbatim_section (ly_code):
        return end_header_re.sub ('\\1% begin verbatim\n', ly_code)