0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-09-29 18:00:49 +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))