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: Wed, 9 Dec 2009 23:21:49 +0100 Message-ID: <51b0095d0912091421i63a7fee7x418fe1c5da334110@mail.gmail.com> References: <51b0095d0912011303n73abddefjfd37fa9fab055c03@mail.gmail.com> <51b0095d0912050358v4e0ec999k9a4e5826877ea995@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 1NIUux-0000jI-Rm for emacs-orgmode@gnu.org; Wed, 09 Dec 2009 17:21:55 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NIUut-0000hk-E8 for emacs-orgmode@gnu.org; Wed, 09 Dec 2009 17:21:55 -0500 Received: from [199.232.76.173] (port=40553 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NIUut-0000hc-8g for emacs-orgmode@gnu.org; Wed, 09 Dec 2009 17:21:51 -0500 Received: from mail-fx0-f213.google.com ([209.85.220.213]:44708) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NIUus-0006IP-UO for emacs-orgmode@gnu.org; Wed, 09 Dec 2009 17:21:51 -0500 Received: by fxm5 with SMTP id 5so7332556fxm.8 for ; Wed, 09 Dec 2009 14:21:50 -0800 (PST) In-Reply-To: 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 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 org= -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 it= an example. >> =A0 =A0 =A0 =A0 =A0 =A0 =A0(setq rtn (org-export-number-lines rtn 'ascii= 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 --=20 Nicolas