[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Bug: evaluation of a js block that ouputs a large array does not
From: |
Nicolas Goaziou |
Subject: |
Re: [O] Bug: evaluation of a js block that ouputs a large array does not format the output as a table [8.2.10 (release_8.2.10 @ c:/Chocolatey/lib/Emacs.24.4.0.20141122/tools/share/emacs/24.4/lisp/org/)] |
Date: |
Sun, 28 Dec 2014 11:42:34 +0100 |
Hello,
Victor Valdivia <address@hidden> writes:
> 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.
I think this was fixed in development branch recently.
Regards,
--
Nicolas Goaziou