From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Girard Subject: Re: Re: [PATCH] Suppress extra newlines around source code in LaTeX export Date: Thu, 10 Dec 2009 22:37:58 +0100 Message-ID: <51b0095d0912101337w3b741b71ke0498a78e1e51f63@mail.gmail.com> References: <51b0095d0912011303n73abddefjfd37fa9fab055c03@mail.gmail.com> <51b0095d0912050358v4e0ec999k9a4e5826877ea995@mail.gmail.com> <51b0095d0912091421i63a7fee7x418fe1c5da334110@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NIqi6-00068b-Q7 for emacs-orgmode@gnu.org; Thu, 10 Dec 2009 16:38:06 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NIqi1-00063q-U8 for emacs-orgmode@gnu.org; Thu, 10 Dec 2009 16:38:06 -0500 Received: from [199.232.76.173] (port=53077 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NIqi1-00063g-Ni for emacs-orgmode@gnu.org; Thu, 10 Dec 2009 16:38:01 -0500 Received: from mail-fx0-f209.google.com ([209.85.220.209]:56857) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NIqi1-0007MH-CB for emacs-orgmode@gnu.org; Thu, 10 Dec 2009 16:38:01 -0500 Received: by fxm2 with SMTP id 2so383528fxm.33 for ; Thu, 10 Dec 2009 13:37:59 -0800 (PST) In-Reply-To: <51b0095d0912091421i63a7fee7x418fe1c5da334110@mail.gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode 2009/12/9 Nicolas Girard : > 2009/12/9 Carsten Dominik : > >>> diff --git a/lisp/org-exp.el b/lisp/org-exp.el >>> index 4c4d540..75ee548 100644 >>> --- a/lisp/org-exp.el >>> +++ b/lisp/org-exp.el >>> @@ -2423,7 +2423,7 @@ INDENT was the original indentation of the block.= " >>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 (concat (car or= g-export-latex-verbatim-wrap) >>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= rtn (cdr >>> org-export-latex-verbatim-wrap))) >>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0'(org-protected t)) >>> - =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 "#+END_LaTeX\n")) >>> + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 "#+END_LaTeX")) >>> =A0 =A0 =A0 =A0 =A0 =A0 ((eq backend 'ascii) >>> =A0 =A0 =A0 =A0 =A0 =A0 =A0;; This is not HTML or LaTeX, so just make i= t an example. >>> =A0 =A0 =A0 =A0 =A0 =A0 =A0(setq rtn (org-export-number-lines rtn 'asci= i 0 0 num cont >>> rpllbl fmt)) >> >> >> I have fixed this part, in a different way though. >> > > I'm afraid there are still extra paragraphs resulting from an extra > newline after code blocs. > > Consider the following test chunk: > > #=3D=3D=3D=3D=3D > This is a new paragraph > #+begin_src emacs-lisp > (setq ispell-program-name "aspell") > #+end_src > continuing after the code bloc. > #=3D=3D=3D=3D=3D > > Using the freshest code, is is translated to > > %=3D=3D=3D=3D=3D > This is a new paragraph > \lstset{language=3DLisp} > \begin{lstlisting} > (setq ispell-program-name "aspell") > \end{lstlisting} > > continuing after the code bloc. > %=3D=3D=3D=3D=3D > > Unfortunately this problem remains: processing #=3D=3D=3D=3D=3D This is a new paragraph #+begin_src emacs-lisp (setq ispell-program-name "aspell") #+end_src continuing after the code bloc. #=3D=3D=3D=3D=3D still inserts an extra newline just before "continuing (...)". Cheers, --=20 Nicolas