emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] Bug: evaluation of a js block that ouputs a large array does not for


From: Victor Valdivia
Subject: [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: Mon, 22 Dec 2014 02:03:22 -0300

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/)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]