1
0
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-11-23 07:18:53 +00:00

babel: Allow output tables to start with 'hline

This commit is contained in:
Dan Davison 2010-04-10 16:12:28 -04:00
parent dc104f407b
commit 8c827ba5ba

View File

@ -784,8 +784,9 @@ code ---- the results are extracted in the syntax of the source
;; assume the result is a table if it's not a string
((not (stringp result))
(insert (concat (orgtbl-to-orgtbl
(if (and (listp (car result))
(listp (cdr (car result))))
(if (or (eq 'hline (car result))
(and (listp (car result))
(listp (cdr (car result)))))
result (list result))
'(:fmt (lambda (cell) (format "%s" cell)))) "\n"))
(forward-line -1) (org-cycle))