From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: How to pass a block of text to a code block as data? Date: Mon, 11 Feb 2013 15:07:02 -0700 Message-ID: <8738x25wu1.fsf@gmail.com> References: <8638x6y2zn.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:57748) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U51Ww-0005Mt-NX for emacs-orgmode@gnu.org; Mon, 11 Feb 2013 17:07:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U51Wu-0004l4-Vq for emacs-orgmode@gnu.org; Mon, 11 Feb 2013 17:07:18 -0500 Received: from mail-da0-f48.google.com ([209.85.210.48]:61866) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U51Wu-0004l0-Of for emacs-orgmode@gnu.org; Mon, 11 Feb 2013 17:07:16 -0500 Received: by mail-da0-f48.google.com with SMTP id v40so2873875dad.35 for ; Mon, 11 Feb 2013 14:07:15 -0800 (PST) In-Reply-To: (Michael Baum's message of "Mon, 11 Feb 2013 16:49:11 -0500") 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: Michael Baum Cc: Sebastien Vauban , emacs-orgmode@gnu.org Michael Baum writes: > Sean, that helps too, thank you. Now that you and Sebastien have gone to > all this trouble I found the part of the manual that sort of describes > this, but I clearly didn't understand it before. Possible needs a more > worked-out example for the slow among us, like self. > Patches are welcome, especially documentation patches. [...] > > NOTICE THAT while both return the result as Example text, the first simple > prepends each line with a colon, simple Example form, and the second wraps > the result in an Example block without altering the lines. > > Not sure why? Is this just a function of the number of lines of the text? > Yes, this is a function of the number of lines in the output text. You can control where this switch is made by changing the value of org-babel-min-lines-for-block-output. Best, -- Eric Schulte http://cs.unm.edu/~eschulte