From d80f959beded280ed61623ec36ea2a9ac07cc747 Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Mon, 24 Apr 2023 19:47:12 -0400 Subject: Update to Org 9.6.4-9-g8eb209 --- lisp/org/ob-js.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lisp/org/ob-js.el') 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) -- cgit v1.2.3