소스 검색

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 년 전
부모
커밋
c70e601b1e
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  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