Browse Source

org-table.el (orgtbl-to-generic): Fix bug when exporting the cells of radio tables with 'hline

* org-table.el (orgtbl-to-generic): Fix bug when exporting the
cells of radio tables with 'hline.

Thanks to David Kincaid for reporting this.
Bastien Guerry 12 years ago
parent
commit
de4d520610
1 changed files with 6 additions and 4 deletions
  1. 6 4
      lisp/org-table.el

+ 6 - 4
lisp/org-table.el

@@ -4706,10 +4706,12 @@ directly by `orgtbl-send-table'.  See manual."
       (setq *orgtbl-table*
 	    (mapcar
 	     (lambda(r)
-	       (mapcar
-		(lambda (c)
-		  (org-trim (org-export-string-as c backend t '(:with-tables t))))
-		r))
+	       (if (listp r)
+		   (mapcar
+		    (lambda (c)
+		      (org-trim (org-export-string-as c backend t '(:with-tables t))))
+		    r)
+		 r))
 	     *orgtbl-table*)))
     ;; Put header
     (unless splicep