From: Mats Bengtsson Date: Fri, 4 Jun 2004 08:27:01 +0000 (+0000) Subject: * scripts/lilypond-book.py (output): Bug fix so preLilyPondExample X-Git-Tag: release/2.3.4~37 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=2ec9bc5cde795bed37320a5fb55121be7fab5989;p=lilypond.git * scripts/lilypond-book.py (output): Bug fix so preLilyPondExample and postLilyPondExample are called when defined. --- diff --git a/ChangeLog b/ChangeLog index 98fa4891f0..84f32149ae 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-06-04 Mats Bengtsson + + * scripts/lilypond-book.py (output): Bug fix so preLilyPondExample + and postLilyPondExample are called when defined. + 2004-06-03 Han-Wen Nienhuys * ly/nederlands.ly (pitchnames): use ly:parser-set-note-names. diff --git a/scripts/lilypond-book.py b/scripts/lilypond-book.py index 14f52b3d3c..1e0aa741f9 100644 --- a/scripts/lilypond-book.py +++ b/scripts/lilypond-book.py @@ -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}