From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: URGENT Bug with exporting org source block Date: Sat, 31 Mar 2012 12:58:08 -0400 Message-ID: <877gy01zdr.fsf@gmx.com> References: <87k420u9qo.fsf@gmx.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:43823) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SE3VG-0002fJ-Q6 for emacs-orgmode@gnu.org; Sat, 31 Mar 2012 14:58:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SE3VE-0007kz-T4 for emacs-orgmode@gnu.org; Sat, 31 Mar 2012 14:58:22 -0400 Received: from mailout-us.gmx.com ([74.208.5.67]:55656) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1SE3VE-0007kp-Lb for emacs-orgmode@gnu.org; Sat, 31 Mar 2012 14:58:20 -0400 In-Reply-To: <87k420u9qo.fsf@gmx.com> (Eric Schulte's message of "Sat, 31 Mar 2012 10:23:51 -0400") 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: Truong Nghiem Cc: emacs-orgmode@gnu.org Eric Schulte writes: > Truong Nghiem writes: > >> I'm using orgmode release Org 7.8.06. When I export an org source >> block (i.e. a source code block in the org language): >> >> #+BEGIN_SRC org :exports code >> ,#+srcname: >> ,#+begin_src
>> , >> ,#+end_src >> #+END_SRC >> >> the last source line is not exported. The output, in both PDF and >> HTML, becomes: >> >> #+srcname: >> #+begin_src
>> >> >> Notice that the line "#+end_src" is not present. >> -- >> Truong Nghiem >> > > Hi Truong, > > Thanks for reporting this problem. The issue lies somewhere later in > the export process and is not related to the Babel expansion of the code > block. To see this your example code may be placed in an org-mode file, > and the code block export expansion may be run by evaluating the > following elisp snippet. > > (let ((org-current-export-file "/path/to/file.org")) > (org-export-blocks-preprocess)) > > Hopefully someone more familiar with the export process can try to pin > down this behavior. This would be a good fix to put in before the > upcoming Emacs merge. > > Best, I've just pushed up a fix for this bug. Best, -- Eric Schulte http://cs.unm.edu/~eschulte/