[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/org b3c7ebecac 2/2: * lisp/ob-core.el (org-babel-format
From: |
ELPA Syncer |
Subject: |
[elpa] externals/org b3c7ebecac 2/2: * lisp/ob-core.el (org-babel-format-result): Document SEP argument |
Date: |
Sat, 26 Aug 2023 09:58:08 -0400 (EDT) |
branch: externals/org
commit b3c7ebecac96d833f6c5780765ec946fa22166ca
Author: Ihor Radchenko <yantar92@posteo.net>
Commit: Ihor Radchenko <yantar92@posteo.net>
* lisp/ob-core.el (org-babel-format-result): Document SEP argument
---
lisp/ob-core.el | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/lisp/ob-core.el b/lisp/ob-core.el
index 4c2480d9ee..0aacc7d5ef 100644
--- a/lisp/ob-core.el
+++ b/lisp/ob-core.el
@@ -2348,7 +2348,9 @@ If the path of the link is a file path it is expanded
using
(t raw))))
(defun org-babel-format-result (result &optional sep)
- "Format RESULT for writing to file."
+ "Format RESULT for writing to file.
+When RESULT is a list, write it as a table, use tab or SEP as column
+separator."
(let ((echo-res (lambda (r) (if (stringp r) r (format "%S" r)))))
(if (listp result)
;; table result