]> git.donarmstrong.com Git - lilypond.git/commitdiff
(do_file): fix thinkos.
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Thu, 1 Dec 2005 23:54:29 +0000 (23:54 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Thu, 1 Dec 2005 23:54:29 +0000 (23:54 +0000)
ChangeLog
VERSION
scripts/lilypond-book.py

index 30472757a757bd46c41fe95300bef401034e0900..e7a92532264cb0120b75364d9403dd3cbbf8fcba 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2005-12-02  Han-Wen Nienhuys  <hanwen@xs4all.nl>
+
+       * scripts/lilypond-book.py (do_file): fix thinkos.
+
 2005-12-01  Jan Nieuwenhuizen  <janneke@gnu.org>
 
        * lily/GNUmakefile ($(outdir)/FlexLexer.h):
@@ -9,6 +13,10 @@
        * ly/titling-init.ly (tagline): it should be a space between
        "Music engraving by LilyPond" and the version number.
 
+2005-12-01  Han-Wen Nienhuys  <hanwen@xs4all.nl>
+
+       * VERSION (PACKAGE_NAME): release 2.7.20
+
 2005-11-30  Han-Wen Nienhuys  <hanwen@xs4all.nl>
 
        * scm/define-markup-commands.scm (pad-to-box): new markup command.
diff --git a/VERSION b/VERSION
index 811df0c26a1d5c5e7ee161da017b90a84517fc52..70214b6bd28ace4338d3927513d74766deba0311 100644 (file)
--- a/VERSION
+++ b/VERSION
@@ -1,6 +1,6 @@
 PACKAGE_NAME=LilyPond
 MAJOR_VERSION=2
 MINOR_VERSION=7
-PATCH_LEVEL=20
+PATCH_LEVEL=21
 MY_PATCH_LEVEL=
 
index f2644801d8ae73766d755bf2be582803c150ba22..a9346b830a42e97ddc317f41914c7d8203899106 100644 (file)
@@ -1354,7 +1354,7 @@ def get_latex_textwidth (source):
 
 def modify_preamble (chunk):
        str = chunk.replacement_text ()
-       if (re.search (r"\\begin{document}", str)
+       if (re.search (r"\\begin *{document}", str)
            and not re.search ("{graphic[sx]", str)):
                str = re.sub (r"\\begin{document}",
                              r"\\usepackage{graphics}" + '\n'
@@ -1530,8 +1530,8 @@ def do_file (input_filename):
                if format == LATEX:
                        for c in chunks:
                                if (c.is_plain () and
-                                   re.search (r"\\begin{document}", c.replacement_text())):
-                                       modify_preamble (chunks[0])
+                                   re.search (r"\\begin *{document}", c.replacement_text())):
+                                       modify_preamble (c)
                                        break
                ly.progress ('\n')