From d09cc7bb3bdb1b32b32fae14b722f4d4c8b0ef79 Mon Sep 17 00:00:00 2001 From: Jambunathan K Date: Wed, 29 Feb 2012 20:09:44 +0530 Subject: [PATCH] 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. --- lisp/org-footnote.el | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lisp/org-footnote.el b/lisp/org-footnote.el index c848bae..f4ea7ff 100644 --- a/lisp/org-footnote.el +++ b/lisp/org-footnote.el @@ -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))) -- 1.7.5.1