diff options
author | Dan Davison <dandavison7@gmail.com> | 2011-02-13 10:52:58 +0000 |
---|---|---|
committer | Dan Davison <dandavison7@gmail.com> | 2011-02-13 10:52:58 +0000 |
commit | 477a8deb31f9a0e612aaed52c3a504399bbe310d (patch) | |
tree | 450695e0d3f70a62d37381e04439ddb223a4cf34 | |
parent | aa6dba8a74016587755c250bb8cc4743a4082ea1 (diff) | |
download | org-mode-477a8deb31f9a0e612aaed52c3a504399bbe310d.tar.gz |
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
-rw-r--r-- | lisp/ob-table.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/ob-table.el b/lisp/ob-table.el index b7f9673..ae444ef 100644 --- a/lisp/ob-table.el +++ b/lisp/ob-table.el @@ -97,7 +97,7 @@ example above." variables))) (unless (stringp 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)) (let ((params (eval `(org-babel-parse-header-arguments |