From: D M German <dmg@uvic.ca>
To: emacs-orgmode@gnu.org
Subject: babel :results output and format of output
Date: Sun, 24 Feb 2013 02:50:13 -0800 [thread overview]
Message-ID: <87ip5iyoii.fsf@mn.cs.uvic.ca> (raw)
hi everybody,
I have been testing babel with perl and I am very puzzled by the
following:
Say I have the following script that outputs 10 numbers. org/babel wraps
it as a begin_example
#+begin_src perl :results output
for (my $i=0;$i<10;$i++) {
print "$i\n";
}
#+end_src
#+RESULTS:
#+begin_example
0
1
2
3
4
5
6
7
8
9
#+end_example
But if my script only outputs 9 lines then the format is not wrapped by
#+begin_example, and instead is prefixed by :
#+begin_src perl :results output
for (my $i=0;$i<9;$i++) {
print "$i\n";
}
#+end_src
#+RESULTS:
: 0
: 1
: 2
: 3
: 4
: 5
: 6
: 7
: 8
Is this behaviour expected? Is the threshold at which it happens
configurable?
thanks a lot for your help,
--dmg
--
Daniel M. German "In questions of science the authority of
a thousand is not worth the humble
Galileo -> reasoning of a single individual."
http://turingmachine.org/
http://silvernegative.com/
dmg (at) uvic (dot) ca
replace (at) with @ and (dot) with .
next reply other threads:[~2013-02-24 10:50 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-24 10:50 D M German [this message]
2013-02-24 11:51 ` babel :results output and format of output Sean O'Halpin
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=87ip5iyoii.fsf@mn.cs.uvic.ca \
--to=dmg@uvic.ca \
--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).