Browse Source

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.
Bastien Guerry 5 years ago
parent
commit
eab0cd025c
1 changed files with 4 additions and 1 deletions
  1. 4 1
      lisp/ob-lilypond.el

+ 4 - 1
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)
       " "