summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Schulte <eric.schulte@gmx.com>2012-01-14 12:50:31 -0700
committerEric Schulte <eric.schulte@gmx.com>2012-01-14 12:50:31 -0700
commit526b3ef9edf4fa981d792273e50c8e701f38dc0d (patch)
treea325c05abf04a561dd2f256b472a5832d60baf9b
parent4ce9b8044c057e03679217dda02ca1da4cd33bfa (diff)
downloadorg-mode-526b3ef9edf4fa981d792273e50c8e701f38dc0d.tar.gz
ensure code block name is a string on export
* lisp/ob-exp.el (org-babel-exp-code): Ensure code block name is a string on export.
-rw-r--r--lisp/ob-exp.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/ob-exp.el b/lisp/ob-exp.el
index 2c6ccb1..2301240 100644
--- a/lisp/ob-exp.el
+++ b/lisp/ob-exp.el
@@ -240,7 +240,7 @@ replaced with its value."
(format "%S" (cdr pair))))
(nth 2 info))
("flags" . ,((lambda (f) (when f (concat " " f))) (nth 3 info)))
- ("name" . ,(nth 4 info)))))
+ ("name" . ,(or (nth 4 info) "")))))
(defun org-babel-exp-results (info type &optional silent hash)
"Evaluate and return the results of the current code block for export.