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
1 changed files with 4 additions and 1 deletions

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))