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
1 changed files with 2 additions and 1 deletions

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)