From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Schmitt Subject: bug with :wrap when exporting Date: Wed, 04 Dec 2013 13:42:19 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59178) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VoC2l-000717-Pz for emacs-orgmode@gnu.org; Wed, 04 Dec 2013 07:59:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VoC2e-0004se-Gv for emacs-orgmode@gnu.org; Wed, 04 Dec 2013 07:59:07 -0500 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:15063) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VoC2e-0004sW-Am for emacs-orgmode@gnu.org; Wed, 04 Dec 2013 07:59:00 -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: emacs-orgmode@gnu.org Hello, I think I have found a bug with ":wrap" when exporting a block. Consider the following org file: --8<---------------cut here---------------start------------->8--- #+name: mywrap #+BEGIN_SRC sh :exports none :results raw echo "(+ 1 2)" #+END_SRC Exporting with the result absent: #+name: testmywrap #+call: mywrap() :wrap src emacs-lisp #+results: testmywrap Exporting with the result present: #+name: testmywrap2 #+call: mywrap() :wrap src emacs-lisp #+results: testmywrap2 #+BEGIN_src emacs-lisp (+ 1 2) #+END_src --8<---------------cut here---------------end--------------->8--- If you export it, you'll see that the results for the second call are duplicated. Note that this only happens during export: evaluating the second call to mywrap does not duplicate the results below. Alan