From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: [BUG] ORG-LIST-END-MARKER when exporting from within a babel block with an exclude or include tag Date: Mon, 16 Jan 2012 08:18:53 -0700 Message-ID: <87lip7smi5.fsf@gmx.com> References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([140.186.70.92]:42816) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rmoa1-0006iP-1E for emacs-orgmode@gnu.org; Mon, 16 Jan 2012 10:34:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RmoZw-0004KF-Ip for emacs-orgmode@gnu.org; Mon, 16 Jan 2012 10:34:41 -0500 Received: from mailout-us.gmx.com ([74.208.5.67]:50778 helo=mailout-us.mail.com) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1RmoZw-0004Jx-7e for emacs-orgmode@gnu.org; Mon, 16 Jan 2012 10:34:36 -0500 In-Reply-To: (frozenlock@gmail.com's message of "Mon, 16 Jan 2012 00:01:19 -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: Frozenlock Cc: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain > > If you export this file to PDF (C-c C-e d), babel will evaluate and > export the file as ascii. However, the ascii file will have the > undesirable "ORG-LIST-END-MARKER" in it. > Here is the resulting ascii export: > Well, this certainly is an odd problem. I can confirm that I recreated the problem locally on export to .tex and .html, but not to .txt. I had to make the following changes to your example [1] before the code block returned any results on export. To make things stranger the marker does not appear in the results when `org-export-blocks-preprocess' is run outside of a recursive export, or when the code block is evaluated interactively. I am not familiar enough with the list exporting code to know where to begin looking into this, but since the buffer does return an elisp string, one easy (though unclean) solution would be to `replace-regexp-in-string' to manually strip the "ORG-LIST-END-MARKER"s from the string. Hope this helps, Footnotes: [1] --=-=-= Content-Type: text/x-org Content-Disposition: inline; filename=weird.org #+TITLE: Test org file #+EXPORT_INCLUDE_TAGS: test2 * First heading :test1: Testing, 1-2, 1-2. * Second heading :test2: Because we can. ** Now a list - First item - Second item #+BEGIN_SRC emacs-lisp :exports results :var buffer-file-name=(buffer-file-name) (let ((org-export-babel-evaluate nil)); don't evaluate in 'recursive' exports (org-export-as-ascii org-export-headline-levels nil nil 'string)) #+END_SRC --=-=-= Content-Type: text/plain -- Eric Schulte http://cs.unm.edu/~eschulte/ --=-=-=--