Browse Source

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.
Eric Schulte 11 years ago
parent
commit
f6ac1a2078
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lisp/ob-sh.el

+ 1 - 1
lisp/ob-sh.el

@@ -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"))