From: John Mandereau Date: Mon, 10 Mar 2008 16:33:58 +0000 (+0100) Subject: Makelsr: do not insert '% begin verbatim' more than once X-Git-Tag: release/2.11.43-1~50^2 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=12a712cf6a30c3af7c5dc638947cbc33b25deb26;p=lilypond.git Makelsr: do not insert '% begin verbatim' more than once --- diff --git a/buildscripts/makelsr.py b/buildscripts/makelsr.py index 233c61ac64..265bbb6b83 100755 --- a/buildscripts/makelsr.py +++ b/buildscripts/makelsr.py @@ -54,7 +54,7 @@ notags_files = [] end_header_re = re.compile ('(\\header {.+?(?:"\\s*|\\s+)}\n)\n', re.M | re.S) def mark_verbatim_section (ly_code): - return end_header_re.sub ('\\1% begin verbatim\n', ly_code) + return end_header_re.sub ('\\1% begin verbatim\n', ly_code, 1) # add tags to ly files from LSR add_tags_re = re.compile ('\\header\\s*{', re.M)