ensure newline precedes automatically-added returns for Python code blocks
* lisp/ob-python.el (org-babel-execute:python): Ensure newline precedes automatically-added returns.
This commit is contained in:
parent
805f3fd92d
commit
cd080b025a
|
@ -64,7 +64,7 @@ This function is called by `org-babel-execute-src-block'."
|
||||||
(preamble (cdr (assoc :preamble params)))
|
(preamble (cdr (assoc :preamble params)))
|
||||||
(full-body
|
(full-body
|
||||||
(org-babel-expand-body:generic
|
(org-babel-expand-body:generic
|
||||||
(concat body (if return-val (format "return %s" return-val) ""))
|
(concat body (if return-val (format "\nreturn %s" return-val) ""))
|
||||||
params (org-babel-variable-assignments:python params)))
|
params (org-babel-variable-assignments:python params)))
|
||||||
(result (org-babel-python-evaluate
|
(result (org-babel-python-evaluate
|
||||||
session full-body result-type result-params preamble)))
|
session full-body result-type result-params preamble)))
|
||||||
|
|
Loading…
Reference in New Issue