diff options
author | Alan Schmitt <alan.schmitt@polytechnique.org> | 2014-03-31 14:24:22 +0200 |
---|---|---|
committer | Alan Schmitt <alan.schmitt@polytechnique.org> | 2014-03-31 14:24:22 +0200 |
commit | f57b2d71414fe195ee98ffb2531fa1423e8d70bf (patch) | |
tree | f784fb9a55c1ab933e13199574f43433df59cdb9 | |
parent | a7e12d2af5293a71473e1ca175f1c1ac087d4c04 (diff) | |
download | org-mode-f57b2d71414fe195ee98ffb2531fa1423e8d70bf.tar.gz |
ob-ocaml.el: Make sure a value was extracted before printing
* lisp/ob-ocaml.el (org-babel-execute:ocaml): Do not try to print
a value if either the type or the value could not be extracted from
the toplevel.
-rw-r--r-- | lisp/ob-ocaml.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/ob-ocaml.el b/lisp/ob-ocaml.el index 60e87e0..7f0e298 100644 --- a/lisp/ob-ocaml.el +++ b/lisp/ob-ocaml.el @@ -95,7 +95,9 @@ ((member "verbatim" result-params) raw) ((member "output" result-params) output) (t raw)) - (org-babel-ocaml-parse-output value type)) + (if (and value type) + (org-babel-ocaml-parse-output value type) + raw)) (org-babel-pick-name (cdr (assoc :colname-names params)) (cdr (assoc :colnames params))) (org-babel-pick-name |