Merge branch 'master' of orgmode.org:org-mode
This commit is contained in:
commit
cad2400443
|
@ -97,13 +97,14 @@ This function is called by `org-babel-execute-src-block'"
|
||||||
If RESULTS look like a table, then convert them into an
|
If RESULTS look like a table, then convert them into an
|
||||||
Emacs-lisp table, otherwise return the results as a string."
|
Emacs-lisp table, otherwise return the results as a string."
|
||||||
(org-babel-read
|
(org-babel-read
|
||||||
(if (and (stringp results) (string-match "^\\[.+\\]$" results))
|
(if (and (stringp results) (string-match "^\\[[^\000]+\\]$" results))
|
||||||
(org-babel-read
|
(org-babel-read
|
||||||
(concat "'"
|
(concat "'"
|
||||||
(replace-regexp-in-string
|
(replace-regexp-in-string
|
||||||
"\\[" "(" (replace-regexp-in-string
|
"\\[" "(" (replace-regexp-in-string
|
||||||
"\\]" ")" (replace-regexp-in-string
|
"\\]" ")" (replace-regexp-in-string
|
||||||
", " " " (replace-regexp-in-string
|
",[[:space:]]" " "
|
||||||
|
(replace-regexp-in-string
|
||||||
"'" "\"" results))))))
|
"'" "\"" results))))))
|
||||||
results)))
|
results)))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue