瀏覽代碼

ob: Don't truncate sbe results

This permits sbe to be used to retrieve multiline results. An example
of usage is with the :shebang and :preamble header args,

 #+srcname: get-shebang
 #+begin_src org
 initial
 shebang
 lines
 here
 #+end_src

 #+begin_src emacs-lisp :shebang (sbe get-shebang)
 stuff
 #+end_src

* lisp/ob-table.el (sbe): Don't truncate sbe results
Dan Davison 14 年之前
父節點
當前提交
477a8deb31
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lisp/ob-table.el

+ 1 - 1
lisp/ob-table.el

@@ -97,7 +97,7 @@ example above."
 	   variables)))
 	   variables)))
     (unless (stringp source-block)
     (unless (stringp source-block)
       (setq source-block (symbol-name source-block)))
       (setq source-block (symbol-name source-block)))
-    (org-babel-table-truncate-at-newline ;; org-table cells can't be multi-line
+    (org-babel-trim
      (if (and source-block (> (length source-block) 0))
      (if (and source-block (> (length source-block) 0))
          (let ((params
          (let ((params
                 (eval `(org-babel-parse-header-arguments
                 (eval `(org-babel-parse-header-arguments