From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: BUG: example/src blocks and latex export Date: Fri, 19 Aug 2011 15:59:40 -0400 Message-ID: <11869.1313783980@alphaville.dokosmarshall.org> References: <6977.1313748571@alphaville.dokosmarshall.org> <8739gxo39e.fsf@gmail.com> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([140.186.70.92]:37540) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QuVEG-00030z-Et for emacs-orgmode@gnu.org; Fri, 19 Aug 2011 15:59:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QuVEF-0004H5-9s for emacs-orgmode@gnu.org; Fri, 19 Aug 2011 15:59:44 -0400 Received: from g5t0006.atlanta.hp.com ([15.192.0.43]:33315) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QuVEF-0004Gg-0I for emacs-orgmode@gnu.org; Fri, 19 Aug 2011 15:59:43 -0400 In-Reply-To: Message from Eric Schulte of "Fri, 19 Aug 2011 07:49:13 MDT." <8739gxo39e.fsf@gmail.com> 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: Eric Schulte Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org Eric Schulte wrote: > > I get sane behavior with the attached patch, but I'm wondering if it > > breaks other backends, so if somebody is willing to test, I'd appreciate > > it (and of course, I'll test as well). For the time being at least, this > > is a trial balloon, not a real patch. > > > > Thanks for the patch, I would not want this behavior on by default > because I think the results in the Org-mode file are less visually > pleasing than when results are padded with spaces. Perhaps this > behavior could be controlled through a new header argument which would > default to the current behavior. > I tried evaluating the code block in the following file both with (my probably slightly stale version of) master: Org-mode version 7.7 (release_7.7.120.g2edd) and the version with the patch applied: Org-mode version 7.7 (release_7.7.121.gb267a) --8<---------------cut here---------------start------------->8--- #+BABEL: :exports code * foo Verbiage to begin the paragraph #+begin_src sh date #+end_src and verbiage to end the same paragraph. * bar Verbiage to begin the paragraph #+begin_example date #+end_example and verbiage to end the same paragraph. --8<---------------cut here---------------end--------------->8--- After C-c C-c in the code block, it looks like this in both cases: --8<---------------cut here---------------start------------->8--- #+BABEL: :exports code * foo Verbiage to begin the paragraph #+begin_src sh date #+end_src #+results: : Fri Aug 19 15:36:04 EDT 2011 and verbiage to end the same paragraph. * bar Verbiage to begin the paragraph #+begin_example date #+end_example and verbiage to end the same paragraph. --8<---------------cut here---------------end--------------->8--- So I don't think the patch changes anything in the visual appearance of the results. Am I missing something? Were you worried about this or something else? Of course, the line after the results does become a new paragraph in this case when exported to latex: there's yet *another* newline inserted after the results, but that is a separate problem, and the patch under discussion does not change that behavior at all. Agreed? Thanks, Nick