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.
This commit is contained in:
Eric Schulte 2011-09-01 12:03:33 -06:00
parent e887881e13
commit a611170b57

View file

@ -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)