Browse Source

[BUG FIX] DONE non-orgtbl formatted lists

Eric Schulte 16 years ago
parent
commit
8ba39da7e9
2 changed files with 4 additions and 3 deletions
  1. 1 1
      lisp/org-babel.el
  2. 3 2
      org-babel.org

+ 1 - 1
lisp/org-babel.el

@@ -529,7 +529,7 @@ silent -- no results are inserted"
           (progn
             (insert
              (concat (orgtbl-to-orgtbl
-                      (if (consp (car result)) result (list result))
+                      (if (listp (cdr (car result))) result (list result))
                       '(:fmt (lambda (cell) (format "%S" cell)))) "\n"))
             (forward-line -1)
             (org-cycle))))

+ 3 - 2
org-babel.org

@@ -2819,7 +2819,7 @@ dot("$(2a,0)$",(2,0),N+E);
 *** DONE sh
 
 
-* Bugs [33/41]
+* Bugs [34/41]
 ** TODO Python session evaluation bug
    The following block evaluates correctly with :session none
    (set :results to output), but fails with session-based evaluation
@@ -3020,7 +3020,7 @@ even a third"
 #+begin_src sh
 size=5
 #+end_src
-** TODO non-orgtbl formatted lists
+** DONE non-orgtbl formatted lists
 for example
 
 #+srcname: this-doesn't-match-orgtbl
@@ -3029,6 +3029,7 @@ for example
 #+end_src
 
 #+resname: this-doesn't-match-orgtbl
+| (:results . "replace") |
 
 #+srcname: this-probably-also-wont-work
 #+begin_src emacs-lisp :results replace