From ac15cc43b0f755da186301c826c74a8010b3f8a9 Mon Sep 17 00:00:00 2001 Message-Id: From: Ihor Radchenko Date: Sat, 29 Oct 2022 13:48:45 +0800 Subject: [PATCH] ob-octave: Fix octave :results value parsing * lisp/ob-octave.el (org-babel-octave-wrapper-method): Use fdisp instead of fprintf. Reported-by: Alexandre Duret-Lutz Link: https://orgmode.org/list/217078597.347872.1639979694777@email.ionos.de --- lisp/ob-octave.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/ob-octave.el b/lisp/ob-octave.el index 55926b789..b0a7767ec 100644 --- a/lisp/ob-octave.el +++ b/lisp/ob-octave.el @@ -61,7 +61,7 @@ (defvar org-babel-matlab-emacs-link-wrapper-method ") (defvar org-babel-octave-wrapper-method "%s -if ischar(ans), fid = fopen('%s', 'w'); fprintf(fid, '%%s\\n', ans); fclose(fid); +if ischar(ans), fid = fopen('%s', 'w'); fdisp(fid, ans); fclose(fid); else, dlmwrite('%s', ans, '\\t') end") -- 2.35.1