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

org-latex: fix lists in footnotes.

* lisp/org-latex.el (org-export-latex-preprocess): last brace
  shouldn't be on the same line as a list end marker.
This commit is contained in:
Nicolas Goaziou 2011-03-18 16:11:51 +01:00
parent d5383b1769
commit c01c2ad035

View file

@ -2415,7 +2415,8 @@ The conversion is made depending of STRING-BEFORE and STRING-AFTER."
(if (re-search-forward "^$\\|^#.*$\\|\\[[0-9]+\\]" nil t)
(match-beginning 0) (point-max)))))
(setq footnote (concat (org-trim (buffer-substring (point) end))
" ")) ; prevent last } being part of a link
; last } won't be part of a link or list.
"\n"))
(delete-region (point) end))
(goto-char foot-beg)
(delete-region foot-beg foot-end)