ob-python: can now handle VERY long result lines

* lisp/ob-python.el (org-babel-python-table-or-string): can now handle
  VERY long result lines
This commit is contained in:
Eric Schulte 2010-07-31 14:24:25 -06:00
parent d035222ce5
commit 9a2ea65bc3
1 changed files with 4 additions and 2 deletions

View File

@ -125,8 +125,10 @@ Emacs-lisp table, otherwise return the results as a string."
(mapcar (lambda (el) (if (equal el 'None) 'hline el)) res)
res))
(org-babel-read
(if (or (string-match "^\\[.+\\]$" results)
(string-match "^(.+)$" results))
(if (or (and (equal (substring results 0 1) "[")
(equal (substring results -2 -1) "]"))
(and (equal (substring results 0 1) "(")
(equal (substring results -2 -1) ")")))
(org-babel-read
(concat "'"
(replace-regexp-in-string