forked from mirrors/org-mode
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 <adl@lrde.epita.fr> Link: https://orgmode.org/list/217078597.347872.1639979694777@email.ionos.de
This commit is contained in:
parent
d45a896289
commit
d094135388
|
@ -61,7 +61,7 @@ delete('%s')
|
||||||
")
|
")
|
||||||
(defvar org-babel-octave-wrapper-method
|
(defvar org-babel-octave-wrapper-method
|
||||||
"%s
|
"%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')
|
else, dlmwrite('%s', ans, '\\t')
|
||||||
end")
|
end")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue