mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2025-01-18 18:51:52 +00:00
ob-ruby: fix a24775dc79
again
* lisp/ob-ruby.el (org-babel-ruby-evaluate): Temporarily disable the irb prompt to ensure that the output is properly recognized using the standard settings from inf-ruby and no extra settings in .irbrc or other configuration files from Ruby. Remove superfluous `comint-send-input' that produced a spurious empty line in output. * testing/lisp/test-ob-ruby.el (test-ob-ruby/session-output): Remove spurious emtpy line in expected output.
This commit is contained in:
parent
e228cd1060
commit
4ef78e68c1
@ -221,8 +221,10 @@ return the value of the last statement in BODY, as elisp."
|
||||
(mapc
|
||||
(lambda (line)
|
||||
(insert (org-babel-chomp line)) (comint-send-input nil t))
|
||||
(list "conf.echo=false" body "conf.echo=true" org-babel-ruby-eoe-indicator))
|
||||
(comint-send-input nil t)) 2)
|
||||
(list "conf.echo=false;_org_prompt_mode=conf.prompt_mode;conf.prompt_mode=:NULL"
|
||||
body
|
||||
"conf.prompt_mode=_org_prompt_mode;conf.echo=true" org-babel-ruby-eoe-indicator))
|
||||
) 2)
|
||||
"\n") "[\r\n]")) "\n"))
|
||||
(value
|
||||
(let* ((tmp-file (org-babel-temp-file "ruby-"))
|
||||
|
@ -39,7 +39,6 @@ puts s
|
||||
#+end_src
|
||||
|
||||
#+RESULTS:
|
||||
:
|
||||
: 3
|
||||
|
||||
")))
|
||||
|
Loading…
Reference in New Issue
Block a user