forked from mirrors/org-mode
babel: more robust newline regexp in `org-babel-comint-with-output'
* contrib/babel/lisp/org-babel-comint.el (org-babel-comint-with-output): Placing a more general regexp substitution for matching newlines returned by comint. This new option should definitely cover all cases.
This commit is contained in:
parent
8318845f6d
commit
9c02bf4946
|
@ -97,7 +97,8 @@ during execution of body."
|
|||
(if (and ,remove-echo
|
||||
(string-match
|
||||
(replace-regexp-in-string
|
||||
"\n" "\r\n" (regexp-quote ,full-body)) string-buffer))
|
||||
"\n" "[\r\n]+" (regexp-quote ,full-body))
|
||||
string-buffer))
|
||||
(setq raw (substring string-buffer (match-end 0))))
|
||||
(split-string string-buffer comint-prompt-regexp))))
|
||||
|
||||
|
|
Loading…
Reference in New Issue