Browse Source

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.
Jambunathan K 13 years ago
parent
commit
f6727a9dde
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lisp/org-footnote.el

+ 1 - 1
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)))