]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/paper-book.cc
* scm/lily.scm (postscript->png): use ~a iso. ~s
[lilypond.git] / lily / paper-book.cc
index b90819a27489652102beac26d557e76beac5adf1..da5b2453c3f9089a067597841b45a4507a279381 100644 (file)
@@ -158,7 +158,11 @@ Paper_book::output (String outname)
   for (SCM s = formats; ly_c_pair_p (s); s = ly_cdr (s)) 
     {
       String format = ly_scm2string (ly_car (s));
-      String file_name = outname + "." + format;
+      String file_name = outname;
+      
+      if (file_name != "-")
+       file_name += "." + format;
+      
       Paper_outputter *out = get_paper_outputter (file_name, format);
   
       SCM scopes = SCM_EOL;