1
0
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-11-25 07:27:57 +00:00

ob-ref: don't treat 'hline rows as lists when indexing

* lisp/ob-ref.el (org-babel-ref-index-list): Special handling of hline
  rows.
This commit is contained in:
Eric Schulte 2011-02-27 09:05:15 -07:00
parent eced270fbf
commit 76137b16fa

View File

@ -181,7 +181,10 @@ to \"0:-1\"."
(open (ls) (if (and (listp ls) (= (length ls) 1)) (car ls) ls)))
(open
(mapcar
(lambda (sub-lis) (org-babel-ref-index-list remainder sub-lis))
(lambda (sub-lis)
(if (listp sub-lis)
(org-babel-ref-index-list remainder sub-lis)
sub-lis))
(if (or (= 0 (length portion)) (string-match ind-re portion))
(mapcar
(lambda (n) (nth n lis))