0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-09-05 05:42:58 +00:00

lisp/ob-sqlite.el (org-babel-sqlite-table-or-scalar): Improve docstring

This commit is contained in:
Ihor Radchenko 2023-12-16 12:47:54 +01:00
parent 31caf84bb7
commit 8fd21d04ce
No known key found for this signature in database
GPG key ID: 6470762A7DA11D8B

View file

@ -128,7 +128,8 @@ This function is called by `org-babel-execute-src-block'."
(org-babel-sql-expand-vars body vars t))
(defun org-babel-sqlite-table-or-scalar (result)
"If RESULT looks like a trivial table, then unwrap it."
"Cleanup cells in the RESULT table.
If RESULT is a trivial 1x1 table, then unwrap it."
(if (and (equal 1 (length result))
(equal 1 (length (car result))))
(org-babel-read (caar result) t)