From e409a859ff3deb42172fec94966aa983e0784865 Mon Sep 17 00:00:00 2001 From: Eric Schulte Date: Sun, 3 Jul 2011 12:12:11 -0600 Subject: [PATCH] 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. --- lisp/ob-python.el | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/lisp/ob-python.el b/lisp/ob-python.el index 3e6c395e1..43213d98f 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