diff options
author | Eric Schulte <schulte.eric@gmail.com> | 2011-07-03 12:12:11 -0600 |
---|---|---|
committer | Eric Schulte <schulte.eric@gmail.com> | 2011-07-03 12:12:11 -0600 |
commit | e409a859ff3deb42172fec94966aa983e0784865 (patch) | |
tree | 68b636b5249051511fe5bd72391a24f4ea13932f | |
parent | fcede7c5779f9e3d9fc0a3b344f20ee312813ddd (diff) | |
download | org-mode-e409a859ff3deb42172fec94966aa983e0784865.tar.gz |
ob-python: inhibit return of the eoe string during session evaluation
* lisp/ob-python.el (org-babel-python-evaluate-session): Inhibit
return of the eoe string during session evaluation.
-rw-r--r-- | lisp/ob-python.el | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/lisp/ob-python.el b/lisp/ob-python.el index 3e6c395..43213d9 100644 --- a/lisp/ob-python.el +++ b/lisp/ob-python.el @@ -255,12 +255,13 @@ last statement in BODY, as elisp." (split-string body "[\r\n]")) (send-wait))) ((lambda (results) - (if (or (member "code" result-params) - (member "pp" result-params) - (and (member "output" result-params) - (not (member "table" result-params)))) - results - (org-babel-python-table-or-string results))) + (unless (string= (substring org-babel-python-eoe-indicator 1 -1) results) + (if (or (member "code" result-params) + (member "pp" result-params) + (and (member "output" result-params) + (not (member "table" result-params)))) + results + (org-babel-python-table-or-string results)))) (case result-type (output (mapconcat |