From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Re: [PATCH] Suppress extra newlines around source code in LaTeX export Date: Mon, 14 Dec 2009 16:41:41 +0100 Message-ID: <66D2118D-3D77-4034-AE7A-300CFB66CF48@gmail.com> References: <51b0095d0912011303n73abddefjfd37fa9fab055c03@mail.gmail.com> <51b0095d0912050358v4e0ec999k9a4e5826877ea995@mail.gmail.com> <51b0095d0912091421i63a7fee7x418fe1c5da334110@mail.gmail.com> <51b0095d0912101337w3b741b71ke0498a78e1e51f63@mail.gmail.com> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NKEah-0007bB-FY for emacs-orgmode@gnu.org; Mon, 14 Dec 2009 12:20:11 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NKEac-0007VO-Fr for emacs-orgmode@gnu.org; Mon, 14 Dec 2009 12:20:10 -0500 Received: from [199.232.76.173] (port=44983 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NKEac-0007V8-7I for emacs-orgmode@gnu.org; Mon, 14 Dec 2009 12:20:06 -0500 Received: from mail-ew0-f224.google.com ([209.85.219.224]:51973) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NKEac-0000fp-1g for emacs-orgmode@gnu.org; Mon, 14 Dec 2009 12:20:06 -0500 Received: by mail-ew0-f224.google.com with SMTP id 24so3756087ewy.26 for ; Mon, 14 Dec 2009 09:20:05 -0800 (PST) In-Reply-To: <51b0095d0912101337w3b741b71ke0498a78e1e51f63@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: Nicolas Girard Cc: emacs-orgmode Actually, I cannot reproduce this problem - I do not see the extra newline. - Carsten On Dec 10, 2009, at 10:37 PM, Nicolas Girard wrote: > 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." >>>> (concat (car org-export-latex- >>>> verbatim-wrap) >>>> rtn (cdr >>>> org-export-latex-verbatim-wrap))) >>>> '(org-protected t)) >>>> - "#+END_LaTeX\n")) >>>> + "#+END_LaTeX")) >>>> ((eq backend 'ascii) >>>> ;; This is not HTML or LaTeX, so just make it an >>>> example. >>>> (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: >> >> #===== >> This is a new paragraph >> #+begin_src emacs-lisp >> (setq ispell-program-name "aspell") >> #+end_src >> continuing after the code bloc. >> #===== >> >> Using the freshest code, is is translated to >> >> %===== >> This is a new paragraph >> \lstset{language=Lisp} >> \begin{lstlisting} >> (setq ispell-program-name "aspell") >> \end{lstlisting} >> >> continuing after the code bloc. >> %===== >> >> > > > Unfortunately this problem remains: processing > > #===== > This is a new paragraph > #+begin_src emacs-lisp > (setq ispell-program-name "aspell") > #+end_src > continuing after the code bloc. > #===== > > still inserts an extra newline just before "continuing (...)". > > Cheers, > > -- > Nicolas > > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten