summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Schulte <schulte.eric@gmail.com>2011-07-03 12:12:11 -0600
committerEric Schulte <schulte.eric@gmail.com>2011-07-03 12:12:11 -0600
commite409a859ff3deb42172fec94966aa983e0784865 (patch)
tree68b636b5249051511fe5bd72391a24f4ea13932f
parentfcede7c5779f9e3d9fc0a3b344f20ee312813ddd (diff)
downloadorg-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.el13
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