diff options
author | Jambunathan K <kjambunathan@gmail.com> | 2012-02-29 20:09:44 +0530 |
---|---|---|
committer | Nicolas Goaziou <n.goaziou@gmail.com> | 2012-02-29 22:48:17 +0100 |
commit | f6727a9ddecc638e1d4c079a0fe7faa2618d4a65 (patch) | |
tree | 2628f52e9b391807992fdc7bef7ac6f68ad6eecc | |
parent | bdb66b4c6191f22abd00da4808dce1b71d2bbfb3 (diff) | |
download | org-mode-f6727a9ddecc638e1d4c079a0fe7faa2618d4a65.tar.gz |
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.
-rw-r--r-- | 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 c683dad..25376f5 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))) |