]> git.donarmstrong.com Git - lilypond.git/commitdiff
* scripts/lilypond-book.py (output): Bug fix so preLilyPondExample
authorMats Bengtsson <mats.bengtsson@s3.kth.se>
Fri, 4 Jun 2004 08:19:43 +0000 (08:19 +0000)
committerMats Bengtsson <mats.bengtsson@s3.kth.se>
Fri, 4 Jun 2004 08:19:43 +0000 (08:19 +0000)
and postLilyPondExample are called when defined.

ChangeLog
scripts/lilypond-book.py

index 89f371431e7cfa4414a267d7a23b1bbd50f830c3..6f13def619fc9a12952834dd9991299328ec07ab 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2004-06-03  Mats Bengtsson  <mabe@drongo.s3.kth.se>
+
+       * scripts/lilypond-book.py (output): Bug fix so preLilyPondExample
+       and postLilyPondExample are called when defined.
+
 2004-06-01  Han-Wen Nienhuys   <hanwen@xs4all.nl>
 
        * lily/accidental-engraver.cc (update_local_key_signature): fold
index 1cec868aa0e8958a47f48abd3d9fe622b1828479..614cef59a401ca0d80cbf19d39d36d1ac01577b0 100644 (file)
@@ -250,10 +250,10 @@ output = {
        BEFORE: '',
        OUTPUT: r'''{\parindent 0pt
 \catcode`\@=12
-\ifx\preLilyPondExample\preLilyPondExample\fi
+\ifx\preLilyPondExample\undefined\relax\else\preLilyPondExample\fi
 \def\lilypondbook{}
 \input %(base)s.tex
-\ifx\preLilyPondExample\postLilyPondExample\fi
+\ifx\postLilyPondExample\undefined\relax\else\postLilyPondExample\fi
 \catcode`\@=0}''',
        PRINTFILENAME: '''\\texttt{%(filename)s}