From 4a751709b53b0d0749ae90d209f1ba9021f06fea Mon Sep 17 00:00:00 2001 From: Matthew Trzcinski Date: Mon, 30 Jan 2023 12:05:22 -0500 Subject: [PATCH] lisp/ob-eval.el: Append newline to source block query * lisp/ob-eval.el (org-babel-eval): Newline facilitates working with Windows cmdproxy.exe. Reported-by: "Osher Jacob" Link: https://list.orgmode.org/orgmode/CAGsxwFZ88cybALCVGgma=5gENMhUa0Rk6xNkBNS_HdsmBgYe6w@mail.gmail.com/ --- lisp/ob-eval.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/ob-eval.el b/lisp/ob-eval.el index b9d1f7f23..405d6b36a 100644 --- a/lisp/ob-eval.el +++ b/lisp/ob-eval.el @@ -64,7 +64,7 @@ Writes QUERY into a temp-buffer that is processed with (let ((error-buffer (get-buffer-create " *Org-Babel Error*")) exit-code) (with-current-buffer error-buffer (erase-buffer)) (with-temp-buffer - (insert query) + (insert query "\n") (setq exit-code (org-babel--shell-command-on-region command error-buffer))