org-footnote: Workaround a limitation in the ODT exporter

* lisp/org-footnote.el (org-footnote-normalize): Force a paragraph
break after the last footnote definition.  This is an an
implicit assumption made by the org-lparse.el library.  With
this change, footnote definitions can reliably be exported
with ODT backend.  See
http://lists.gnu.org/archive/html/emacs-orgmode/2012-02/msg01013.html.
This commit is contained in:
Jambunathan K 2012-02-29 20:09:44 +05:30 committed by Nicolas Goaziou
parent bdb66b4c61
commit f6727a9dde
1 changed files with 1 additions and 1 deletions

View File

@ -810,7 +810,7 @@ Additional note on `org-footnote-insert-pos-for-preprocessor':
(lambda (x)
(format "\n[%s] %s" (nth (if sort-only 0 1) x) (nth 2 x)))
ref-table "\n"))
(unless (eobp) (insert "\n"))
(unless (eobp) (insert "\n\n"))
;; When exporting, add newly inserted markers along with their
;; associated definition to `org-export-footnotes-seen'.
(when export-props (setq org-export-footnotes-seen ref-table)))