]> 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:27:01 +0000 (08:27 +0000)
committerMats Bengtsson <mats.bengtsson@s3.kth.se>
Fri, 4 Jun 2004 08:27:01 +0000 (08:27 +0000)
and postLilyPondExample are called when defined.

ChangeLog
scripts/lilypond-book.py

index 98fa4891f025d16cebb3910a51777c8ca8512bfc..84f32149ae57456351a87421f05880cc2f358650 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2004-06-04  Mats Bengtsson  <mabe@drongo.s3.kth.se>
+
+       * scripts/lilypond-book.py (output): Bug fix so preLilyPondExample
+       and postLilyPondExample are called when defined.
+
 2004-06-03  Han-Wen Nienhuys   <hanwen@xs4all.nl>
 
        * ly/nederlands.ly (pitchnames): use ly:parser-set-note-names.
index 14f52b3d3cfc3dd0bb680444abcf04fe58b4ad2b..1e0aa741f9b5b79d5028da7add73f5835d2d8bc0 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}