Browse Source

ob-table: fix bug returning an integer from sbe

* lisp/ob-table.el (sbe): Ensure that ob-trim is only called on
  strings.
Eric Schulte 14 years ago
parent
commit
c70e601b1e
1 changed files with 2 additions and 1 deletions
  1. 2 1
      lisp/ob-table.el

+ 2 - 1
lisp/ob-table.el

@@ -97,7 +97,8 @@ example above."
 	   variables)))
     (unless (stringp source-block)
       (setq source-block (symbol-name source-block)))
-    (org-babel-trim
+    ((lambda (result)
+       (org-babel-trim (if (stringp result) result (format "%S" result))))
      (if (and source-block (> (length source-block) 0))
          (let ((params
                 (eval `(org-babel-parse-header-arguments