fix bug in ob-sh when dealing with list variables

* lisp/ob-sh.el (org-babel-sh-var-to-string): Fix bug in ob-sh when
  dealing with list variables.
This commit is contained in:
Eric Schulte 2013-07-17 08:15:35 -06:00
parent e8766c33f8
commit f6ac1a2078
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,7 @@ var of the same value."
"Convert an elisp value to a string."
(let ((echo-var (lambda (v) (if (stringp v) v (format "%S" v)))))
(cond
((and (listp var) (or (listp (car var)) 'hline))
((and (listp var) (or (listp (car var)) (equal (car var) 'hline)))
(orgtbl-to-generic var (list :sep (or sep "\t") :fmt echo-var)))
((listp var)
(mapconcat echo-var var "\n"))