0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-07-16 22:46:26 +00:00

LaTeX export: leave empty lines after list in place

Nicolas Girard writes:

> My point was, in the following two examples, the empty lines right
> before "C" should be preserved in the LaTeX output.
>
> Cheers,
> Nicolas
>
> #===
> - A2
> - B2
>
> C
> #===
>
>
> #===
> - A3
> - B3
>
>
> C
> #===
This commit is contained in:
Carsten Dominik 2009-12-03 15:28:16 +01:00
parent d080c9f6be
commit eb5cefed26
2 changed files with 7 additions and 1 deletions

View file

@ -1,5 +1,8 @@
2009-12-03 Carsten Dominik <carsten.dominik@gmail.com>
* org-list.el (org-list-parse-list): Leave empty lines after the
list, don't consider them as part of the list.
* org-mobile.el (org-mobile-sumo-agenda-command): Allow tagstodo
searches.

View file

@ -1083,7 +1083,10 @@ Return a list containing first level items as strings and
sublevels as a list of strings."
(let* ((item-beginning (org-list-item-beginning))
(start (car item-beginning))
(end (org-list-end (cdr item-beginning)))
(end (save-excursion
(goto-char (org-list-end (cdr item-beginning)))
(org-back-over-empty-lines)
(point)))
output itemsep ltype)
(while (re-search-forward org-list-beginning-re end t)
(goto-char (match-beginning 3))