Browse Source

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.
Eric Schulte 14 years ago
parent
commit
76137b16fa
1 changed files with 4 additions and 1 deletions
  1. 4 1
      lisp/ob-ref.el

+ 4 - 1
lisp/ob-ref.el

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