From eab0cd025c7f2f1b4f185dc9325b684b46a6f10c Mon Sep 17 00:00:00 2001 From: Bastien Guerry Date: Sat, 26 Jan 2013 12:00:37 +0100 Subject: [PATCH] ob-lilypond.el (ly-process-basic): Rely on ly-gen-png/pdf/eps to set the output type * ob-lilypond.el (ly-process-basic): Rely on ly-gen-png/pdf/eps to set the output type. Thanks to Florian Beck for reporting this. --- lisp/ob-lilypond.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lisp/ob-lilypond.el b/lisp/ob-lilypond.el index 0d6b39b36..b96dc344d 100644 --- a/lisp/ob-lilypond.el +++ b/lisp/ob-lilypond.el @@ -152,7 +152,10 @@ specific arguments to =org-babel-tangle=" " -dbackend=eps " "-dno-gs-load-fonts " "-dinclude-eps-fonts " - "--png " + (cond (ly-gen-png "--png ") + (ly-gen-pdf "--pdf ") + (ly-gen-eps "--ps ") + (t "--png ")) "--output=" (file-name-sans-extension out-file) " " -- 2.11.4.GIT