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: Carsten Dominik
Subject: Re: [Orgmode] Re: [PATCH] Suppress extra newlines around source code in LaTeX export
Date: Mon, 14 Dec 2009 16:41:41 +0100

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 <address@hidden>:
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.
%=====




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.
address@hidden
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

- Carsten







reply via email to

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