mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-11-25 07:27:57 +00:00
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:
parent
e8766c33f8
commit
f6ac1a2078
@ -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"))
|
||||
|
Loading…
Reference in New Issue
Block a user