summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Schulte <schulte.eric@gmail.com>2011-02-28 16:03:03 -0700
committerEric Schulte <schulte.eric@gmail.com>2011-02-28 16:03:03 -0700
commitc70e601b1efb52a9624c337928ccbdefd2e6cba3 (patch)
tree01655ed494e3acfe8f088bc12aafd02bde0accc6
parent075016cdfa0d008b643bf501402be24adaebf2ce (diff)
downloadorg-mode-c70e601b1efb52a9624c337928ccbdefd2e6cba3.tar.gz
ob-table: fix bug returning an integer from sbe
* lisp/ob-table.el (sbe): Ensure that ob-trim is only called on strings.
-rw-r--r--lisp/ob-table.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/ob-table.el b/lisp/ob-table.el
index ae444ef..c76ef3c 100644
--- a/lisp/ob-table.el
+++ b/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