diff options
Diffstat (limited to 'lisp/org/ob-octave.el')
-rw-r--r-- | lisp/org/ob-octave.el | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lisp/org/ob-octave.el b/lisp/org/ob-octave.el index 9be8f5ad3eb..b0a7767ec3e 100644 --- a/lisp/org/ob-octave.el +++ b/lisp/org/ob-octave.el @@ -4,7 +4,7 @@ ;; Author: Dan Davison ;; Keywords: literate programming, reproducible research -;; Homepage: https://orgmode.org +;; URL: https://orgmode.org ;; This file is part of GNU Emacs. @@ -29,6 +29,10 @@ ;; octave-mode.el and octave-inf.el come with GNU emacs ;;; Code: + +(require 'org-macs) +(org-assert-version) + (require 'ob) (require 'org-macs) @@ -57,7 +61,7 @@ delete('%s') ") (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") |