浏览代码

ob-python: enough newlines to ensure a return when ":results output :session"

* lisp/ob-python.el (org-babel-python-evaluate-session): Enough
  newlines to ensure a return when ":results output :session".
Eric Schulte 13 年之前
父节点
当前提交
fcede7c577
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      lisp/ob-python.el

+ 2 - 1
lisp/ob-python.el

@@ -269,8 +269,9 @@ last statement in BODY, as elisp."
 	  (org-babel-comint-with-output
 	      (session org-babel-python-eoe-indicator t body)
 	    (input-body body)
+	    (send-wait) (send-wait)
 	    (insert org-babel-python-eoe-indicator)
-	    (send-wait) (send-wait))
+	    (send-wait))
 	  2) "\n"))
        (value
 	(let ((tmp-file (org-babel-temp-file "python-")))