From 426b22232f333fb511f0110cd376f73b54b68d2b Mon Sep 17 00:00:00 2001 From: Jan Nieuwenhuizen Date: Tue, 16 Mar 2010 15:37:17 +0100 Subject: [PATCH] Do not crash trying to issue warning. Fixes creating output read from stdin. This is a minimal fix, the default behaviour of producing PDF echo '{a b c}' | out/bin/lilypond - still does not work. What does work now is the PS output, eg echo '{a b c}' | out/bin/lilypond --ps - --- scm/framework-ps.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scm/framework-ps.scm b/scm/framework-ps.scm index cf2eaa50e5..4cd6c29a7f 100644 --- a/scm/framework-ps.scm +++ b/scm/framework-ps.scm @@ -626,7 +626,7 @@ fonts inline." (w (if landscape paper-height paper-width)) (h (if landscape paper-width paper-height))) (if (equal? (basename name ".ps") "-") - (ly:warning (_ "cannot convert to ~S" "PDF")) + (ly:warning (_ "cannot convert to ~S") "PDF") (postscript->pdf w h name)))) (define-public (convert-to-png book name) -- 2.39.2