ob-table: fix bug returning an integer from sbe

* lisp/ob-table.el (sbe): Ensure that ob-trim is only called on
  strings.
This commit is contained in:
Eric Schulte 2011-02-28 16:03:03 -07:00
parent 075016cdfa
commit c70e601b1e
1 changed files with 2 additions and 1 deletions

View File

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