forked from mirrors/org-mode
org-babel-python: Silent bug fix.
The code worked because the unintended extra parentheses didn't cause problems.
This commit is contained in:
parent
6875d4d8e3
commit
3ec02a953d
|
@ -161,7 +161,7 @@ last statement in BODY, as elisp."
|
|||
(mapconcat
|
||||
(lambda (line) (format "\t%s" line))
|
||||
(butlast lines) "\n")
|
||||
(format "\n\treturn %s" (last lines))))
|
||||
(format "\n\treturn %s" (car (last lines)))))
|
||||
tmp-file))
|
||||
;; (message "buffer=%s" (buffer-string)) ;; debugging
|
||||
(shell-command-on-region (point-min) (point-max) "python"))
|
||||
|
|
Loading…
Reference in New Issue