From mboxrd@z Thu Jan 1 00:00:00 1970 From: D M German Subject: babel :results output and format of output Date: Sun, 24 Feb 2013 02:50:13 -0800 Message-ID: <87ip5iyoii.fsf@mn.cs.uvic.ca> Reply-To: dmg@uvic.ca Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:46442) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U9Z9w-00041i-F4 for emacs-orgmode@gnu.org; Sun, 24 Feb 2013 05:50:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U9Z9t-0006SD-PN for emacs-orgmode@gnu.org; Sun, 24 Feb 2013 05:50:20 -0500 Received: from mail-pb0-f46.google.com ([209.85.160.46]:33843) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U9Z9t-0006Rv-Jb for emacs-orgmode@gnu.org; Sun, 24 Feb 2013 05:50:17 -0500 Received: by mail-pb0-f46.google.com with SMTP id uo15so1186928pbc.19 for ; Sun, 24 Feb 2013 02:50:16 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org 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 .