From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: [bugs] Export to HTML requires issuing org-babel-execute-buffer; results replace fails Date: Mon, 23 Jan 2012 10:58:42 -0700 Message-ID: <87k44is34h.fsf@gmx.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:59686) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RpOK5-00018B-34 for emacs-orgmode@gnu.org; Mon, 23 Jan 2012 13:08:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RpOK3-00006M-KH for emacs-orgmode@gnu.org; Mon, 23 Jan 2012 13:08:52 -0500 Received: from mailout-us.gmx.com ([74.208.5.67]:45103 helo=mailout-us.mail.com) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1RpOK3-00006D-8g for emacs-orgmode@gnu.org; Mon, 23 Jan 2012 13:08:51 -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: Leo Alekseyev Cc: Emacs orgmode Leo Alekseyev writes: > Since all source blocks are evaluated on export, I don't think it > should be necessary to issue org-babel-execute-buffer before invoking > export. However, running HTML export without org-babel-execute-buffer > currently produces garbage output. > What do you mean by "garbage" output? > > On the other hand, I have several examples where running HTML export > _after_ org-babel-execute-buffer produces the wrong output due to the > fact that :results replace directive appears to append instead of > replacing the output > Could you isolate a minimal example demonstrating just the failure of results replacement? Thanks, > > I am attaching three simple examples where I simulate generating and > exporting image data (I just generate and print filenames). If I > understand the documentation correctly, they are all supposed to > produce identical output on HTML export; however, none of the files > produces the expected output, namely, blocks of the form: > > ---- > | some output > | images/conv1.png > | > | images/conv1.png > \-- > > Here, the first two lines should be enclosed in a code block, and the > last line should be raw org output. > > To reproduce, load any of my examples, do > > C-c C-e h <- will produce garbage output on export > C-c C-v b <- will produce expected output in the buffer > C-c C-e h <- will produce extraneous output on export despite :results > replace being on > C-c C-v b <- will produce extraneous output in the buffer > > This was tested on my test-export4.org, but the other examples behave > in a similar fashion. > > --Leo > > > -- Eric Schulte http://cs.unm.edu/~eschulte/