From: Victor Valdivia <victor.valdivia@incentings.com>
To: emacs-orgmode@gnu.org
Subject: 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 [thread overview]
Message-ID: <CAE7c=pCOU8K1X-=wwD=5Sem5ByxAHPQgvNEEcEnkZS9YXgTW=w@mail.gmail.com> (raw)
[-- 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 --]
next reply other threads:[~2014-12-22 5:03 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-22 5:03 Victor Valdivia [this message]
2014-12-28 10:42 ` 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/)] Nicolas Goaziou
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
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAE7c=pCOU8K1X-=wwD=5Sem5ByxAHPQgvNEEcEnkZS9YXgTW=w@mail.gmail.com' \
--to=victor.valdivia@incentings.com \
--cc=emacs-orgmode@gnu.org \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).