diff options
author | Kyle Meyer <kyle@kyleam.com> | 2023-04-24 19:47:12 -0400 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2023-04-24 19:47:12 -0400 |
commit | d80f959beded280ed61623ec36ea2a9ac07cc747 (patch) | |
tree | 5b0a0fcc434d6d5a0204fefb932fc7c7859e4042 /lisp/org/ob-js.el | |
parent | 98c6cfcbe4a07191f73e3bb94ff1f047551533e6 (diff) | |
download | emacs-d80f959beded280ed61623ec36ea2a9ac07cc747.tar.gz emacs-d80f959beded280ed61623ec36ea2a9ac07cc747.tar.bz2 emacs-d80f959beded280ed61623ec36ea2a9ac07cc747.zip |
Update to Org 9.6.4-9-g8eb209
Diffstat (limited to 'lisp/org/ob-js.el')
-rw-r--r-- | lisp/org/ob-js.el | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/org/ob-js.el b/lisp/org/ob-js.el index 910c1168667..de7ea91317f 100644 --- a/lisp/org/ob-js.el +++ b/lisp/org/ob-js.el @@ -69,7 +69,10 @@ :safe #'stringp) (defvar org-babel-js-function-wrapper - "require('process').stdout.write(require('util').inspect(function(){%s}()));" + ;; Note that newline after %s - it makes sure that closing + ;; parenthesis are not shadowed if the last line of the body is a + ;; line comment. + "require('process').stdout.write(require('util').inspect(function(){%s\n}()));" "Javascript code to print value of body.") (defun org-babel-execute:js (body params) |