* 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/)]
@ 2014-12-22 5:03 Victor Valdivia
2014-12-28 10:42 ` Nicolas Goaziou
0 siblings, 1 reply; 2+ messages in thread
From: Victor Valdivia @ 2014-12-22 5:03 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 1031 bytes --]
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/)
[-- Attachment #2: Type: text/html, Size: 1194 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: 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/)]
2014-12-22 5:03 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/)] Victor Valdivia
@ 2014-12-28 10:42 ` Nicolas Goaziou
0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Goaziou @ 2014-12-28 10:42 UTC (permalink / raw)
To: Victor Valdivia; +Cc: emacs-orgmode
Hello,
Victor Valdivia <victor.valdivia@incentings.com> 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-12-28 10:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-22 5:03 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/)] Victor Valdivia
2014-12-28 10:42 ` Nicolas Goaziou
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.