From a611170b5772efa6be1937c4d237f241fe407f97 Mon Sep 17 00:00:00 2001 From: Eric Schulte Date: Thu, 1 Sep 2011 12:03:33 -0600 Subject: [PATCH] ob-R: improve prompt detection regexp. Thanks to the users of ess-tracebug for this new regexp * lisp/ob-R.el (org-babel-R-evaluate-session): Improve prompt detection regexp. --- lisp/ob-R.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/ob-R.el b/lisp/ob-R.el index 396949757..09c895016 100644 --- a/lisp/ob-R.el +++ b/lisp/ob-R.el @@ -294,7 +294,7 @@ last statement in BODY, as elisp." (mapcar (lambda (line) ;; cleanup extra prompts left in output (if (string-match - "^\\([ ]*[>+][ ]?\\)+\\([[0-9]+\\|[ ]\\)" line) + "^\\([ ]*[>+\\.][ ]?\\)+\\([[0-9]+\\|[ ]\\)" line) (substring line (match-end 1)) line)) (org-babel-comint-with-output (session org-babel-R-eoe-output)