]> git.donarmstrong.com Git - lilypond.git/commitdiff
Do not crash trying to issue warning. Fixes creating output read from stdin.
authorJan Nieuwenhuizen <janneke@gnu.org>
Tue, 16 Mar 2010 14:37:17 +0000 (15:37 +0100)
committerJan Nieuwenhuizen <janneke@gnu.org>
Tue, 16 Mar 2010 14:37:33 +0000 (15:37 +0100)
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

index cf2eaa50e509cd62e6d8d9e56527532178f63f64..4cd6c29a7f04d5900eefd3aedf9a8cb97a87e4f1 100644 (file)
@@ -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 <stdout> to ~S" "PDF"))
+       (ly:warning (_ "cannot convert <stdout> to ~S") "PDF")
        (postscript->pdf w h name))))
 
 (define-public (convert-to-png book name)