浏览代码

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 年之前
父节点
当前提交
76137b16fa
共有 1 个文件被更改,包括 4 次插入1 次删除
  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))