diff options
author | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2016-11-21 23:21:23 +0100 |
---|---|---|
committer | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2016-11-21 23:21:23 +0100 |
commit | 0dd024aa92a282ce28cd15ebd091b2f2b211a948 (patch) | |
tree | a4a05f8e430c8cdaffa4a144b330f823d52dc1bc | |
parent | 0bdf18befde4765290d06bf11c2bf332ff5f0fe6 (diff) | |
download | org-mode-0dd024aa92a282ce28cd15ebd091b2f2b211a948.tar.gz |
ob-js: Fix error when code block ends with a comment
* lisp/ob-js.el (org-babel-js-function-wrapper): Isolate body within
wrapper.
Reported-by: Compro Prasad <comproprasad@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/110390>
-rw-r--r-- | lisp/ob-js.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/ob-js.el b/lisp/ob-js.el index 1a20d7e..0cd3b06 100644 --- a/lisp/ob-js.el +++ b/lisp/ob-js.el @@ -55,7 +55,7 @@ :type 'string) (defvar org-babel-js-function-wrapper - "require('sys').print(require('sys').inspect(function(){%s}()));" + "require('sys').print(require('sys').inspect(function(){\n%s\n}()));" "Javascript code to print value of body.") (defun org-babel-execute:js (body params) |