From mboxrd@z Thu Jan 1 00:00:00 1970 From: Victor Valdivia Subject: =?UTF-8?B?QnVnOiBldmFsdWF0aW9uIG9mIGEganMgYmxvY2sgdGhhdCBvdXB1?= =?UTF-8?B?dHMgYSBsYXJnZSBhcnJheSBkb2VzIG5vdCBmb3JtYXQgdGhlIG91dHB1dCBh?= =?UTF-8?B?cyBhIHRhYmxlIFs4LjIuMTAgKHJlbGVhc2VfOC4yLjEwIEAgYzovQ2hvY29s?= =?UTF-8?B?YXRleS9saWIvRW1hY3MuMjQuNC4wLjIwMTQxMTIyL3Rvb2xzL3NoYXJlL2Vt?= =?UTF-8?B?YWNzLzI0LjQvbGlzcC9vcmcvKV0=?= Date: Mon, 22 Dec 2014 02:03:22 -0300 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e01419f4e85160e050ac6fbed Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42551) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y2v9l-0008Vt-Iq for emacs-orgmode@gnu.org; Mon, 22 Dec 2014 00:03:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y2v9k-0004Z3-L9 for emacs-orgmode@gnu.org; Mon, 22 Dec 2014 00:03:45 -0500 Received: from mail-wg0-x232.google.com ([2a00:1450:400c:c00::232]:52189) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y2v9k-0004YN-Co for emacs-orgmode@gnu.org; Mon, 22 Dec 2014 00:03:44 -0500 Received: by mail-wg0-f50.google.com with SMTP id a1so5777623wgh.37 for ; Sun, 21 Dec 2014 21:03:43 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --089e01419f4e85160e050ac6fbed Content-Type: text/plain; charset=UTF-8 Hello. When I execute this snippet: #+BEGIN_SRC js return [[1, 2, 3, 4],[1, 2, 3, 4],[1, 2, 3, 4], [1, 2, 3, 4],[1, 2, 3, 4]]; #+END_SRC I get this result instead of a table. #+RESULTS: : [[1 (\, 2) (\, 3) (\, 4)] (\, [1 (\, 2) (\, 3) (\, 4)]) (\, [1 (\, 2) (\, 3) (\, 4)]) (\, [1 (\, 2) (\, 3) (\, 4)]) (\, [1 (\, 2) (\, 3) (\, 4)])] But when I generate a shorter table like this #+BEGIN_SRC js return [[1, 2, 3, 4],[1, 2, 3, 4],[1, 2, 3, 4], [1, 2, 3, 4]]; #+END_SRC I get the expected result. #+RESULTS: | 1 | 2 | 3 | 4 | | 1 | 2 | 3 | 4 | | 1 | 2 | 3 | 4 | | 1 | 2 | 3 | 4 | I think that this happens when node.js generates a output with line breaks, then the function org-babel-js-read cannot parse the output, but I am not sure. Thanks Victor ------------------------------------------------------------------------ Emacs : GNU Emacs 24.4.1 (i686-pc-mingw32) of 2014-10-24 on LEG570 Package: Org-mode version 8.2.10 (release_8.2.10 @ c:/Chocolatey/lib/Emacs.24.4.0.20141122/tools/share/emacs/24.4/lisp/org/) --089e01419f4e85160e050ac6fbed Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hello.

When I execute this snippet:
#+BEGIN= _SRC js
return=C2=A0 [[1, 2, 3, 4],[1, 2, 3, 4],[1, 2, 3, 4], [1, 2, 3, = 4],[1, 2, 3, 4]];
#+END_SRC

I get this result instead of a table.=
#+RESULTS:
: [[1 (\, 2) (\, 3) (\, 4)] (\, [1 (\, 2) (\, 3) (\, 4)])= (\, [1 (\, 2) (\, 3) (\, 4)]) (\, [1 (\, 2) (\, 3) (\, 4)]) (\, [1 (\, 2) = (\, 3) (\, 4)])]

But when I generate a shorter table like this
#+= BEGIN_SRC js
return=C2=A0 [[1, 2, 3, 4],[1, 2, 3, 4],[1, 2, 3, 4], [1, 2= , 3, 4]];
#+END_SRC

I get the expected result.
#+RESULTS:
|= 1 | 2 | 3 | 4 |
| 1 | 2 | 3 | 4 |
| 1 | 2 | 3 | 4 |
| 1 | 2 | 3 |= 4 |


I think that this happens when node.js generates a output w= ith line
breaks, then the function org-babel-js-read cannot parse the ou= tput, but I am not sure.

Thanks

Victor


-----------= -------------------------------------------------------------


Emacs=C2=A0 : GNU Emacs 24.4.1 (i686-pc-mingw32)
=C2=A0of 2014-10-24 o= n LEG570
Package: Org-mode version 8.2.10 (release_8.2.10 @ c:/Chocolate= y/lib/Emacs.24.4.0.20141122/tools/share/emacs/24.4/lisp/org/)


--089e01419f4e85160e050ac6fbed--