emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] Re: [PATCH] Suppress extra newlines around source code in


From: Nicolas Girard
Subject: Re: [Orgmode] Re: [PATCH] Suppress extra newlines around source code in LaTeX export
Date: Wed, 9 Dec 2009 23:21:49 +0100

2009/12/9 Carsten Dominik <address@hidden>:

>> 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.
%=====


-- 
Nicolas




reply via email to

[Prev in Thread] Current Thread [Next in Thread]