From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [new exporter] :wrap problems Date: Wed, 05 Dec 2012 21:42:59 +0100 Message-ID: <8738zkut64.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:53586) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TgLsA-0003fO-BC for emacs-orgmode@gnu.org; Wed, 05 Dec 2012 15:47:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TgLs8-0002Cw-Rd for emacs-orgmode@gnu.org; Wed, 05 Dec 2012 15:47:14 -0500 Received: from mail-we0-f169.google.com ([74.125.82.169]:48728) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TgLs8-0002B3-LC for emacs-orgmode@gnu.org; Wed, 05 Dec 2012 15:47:12 -0500 Received: by mail-we0-f169.google.com with SMTP id t49so2615871wey.0 for ; Wed, 05 Dec 2012 12:47:11 -0800 (PST) In-Reply-To: (Michael Gauland's message of "Wed, 5 Dec 2012 20:31:37 +0000 (UTC)") 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 Gauland Cc: emacs-orgmode@gnu.org Hello, Michael Gauland writes: > I've run into trouble using the :wrap option with babel, with the new exporter. > Using :wrap to put the result in an EXAMPLE block works consistently, but > putting the result into a SRC block is inconsistent. This example: > > * :wrap example > #+BEGIN_SRC ruby :results value :exports both :wrap EXAMPLE > "This string came from Ruby." > #+END_SRC > #+BEGIN_SRC ruby :results value :exports both :wrap SRC fundamental > "This string also came from Ruby." > #+END_SRC > > Works as I would expect with the old exporter, but the new exporter does not > process the generated SRC block. Exporting to ASCII gives me: > > :wrap example > ============= > > ,---- > | "This string came from Ruby." > `---- > > ,---- > | This string came from Ruby. > `---- > > ,---- > | "This string also came from Ruby." > `---- > > #+BEGIN_SRC fundamental This string also came from Ruby. > #+END_SRC fundamental I only have time for a cursory look at the problem right now, but I notice one obvious error: ":wrap src fundamental" generates wrong Org syntax. It should be "#+END_SRC" not "#+END_SRC fundamental". I assume that fixing it on the Babel side should make the problem go away. Regards, -- Nicolas Goaziou