From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Victor Valdivia <victor.valdivia@incentings.com>
Cc: emacs-orgmode@gnu.org
Subject: 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/)]
Date: Sun, 28 Dec 2014 11:42:34 +0100 [thread overview]
Message-ID: <877fxckqcl.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <CAE7c=pCOU8K1X-=wwD=5Sem5ByxAHPQgvNEEcEnkZS9YXgTW=w@mail.gmail.com> (Victor Valdivia's message of "Mon, 22 Dec 2014 02:03:22 -0300")
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
prev parent reply other threads:[~2014-12-28 10:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=877fxckqcl.fsf@nicolasgoaziou.fr \
--to=mail@nicolasgoaziou.fr \
--cc=emacs-orgmode@gnu.org \
--cc=victor.valdivia@incentings.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.