Browse Source

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.
Eric Schulte 13 năm trước cách đây
mục cha
commit
a611170b57
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      lisp/ob-R.el

+ 1 - 1
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)