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:
parent
d035222ce5
commit
9a2ea65bc3
|
@ -125,8 +125,10 @@ Emacs-lisp table, otherwise return the results as a string."
|
||||||
(mapcar (lambda (el) (if (equal el 'None) 'hline el)) res)
|
(mapcar (lambda (el) (if (equal el 'None) 'hline el)) res)
|
||||||
res))
|
res))
|
||||||
(org-babel-read
|
(org-babel-read
|
||||||
(if (or (string-match "^\\[.+\\]$" results)
|
(if (or (and (equal (substring results 0 1) "[")
|
||||||
(string-match "^(.+)$" results))
|
(equal (substring results -2 -1) "]"))
|
||||||
|
(and (equal (substring results 0 1) "(")
|
||||||
|
(equal (substring results -2 -1) ")")))
|
||||||
(org-babel-read
|
(org-babel-read
|
||||||
(concat "'"
|
(concat "'"
|
||||||
(replace-regexp-in-string
|
(replace-regexp-in-string
|
||||||
|
|
Loading…
Reference in New Issue