forked from mirrors/org-mode
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:
parent
bdb66b4c61
commit
f6727a9dde
|
@ -810,7 +810,7 @@ Additional note on `org-footnote-insert-pos-for-preprocessor':
|
||||||
(lambda (x)
|
(lambda (x)
|
||||||
(format "\n[%s] %s" (nth (if sort-only 0 1) x) (nth 2 x)))
|
(format "\n[%s] %s" (nth (if sort-only 0 1) x) (nth 2 x)))
|
||||||
ref-table "\n"))
|
ref-table "\n"))
|
||||||
(unless (eobp) (insert "\n"))
|
(unless (eobp) (insert "\n\n"))
|
||||||
;; When exporting, add newly inserted markers along with their
|
;; When exporting, add newly inserted markers along with their
|
||||||
;; associated definition to `org-export-footnotes-seen'.
|
;; associated definition to `org-export-footnotes-seen'.
|
||||||
(when export-props (setq org-export-footnotes-seen ref-table)))
|
(when export-props (setq org-export-footnotes-seen ref-table)))
|
||||||
|
|
Loading…
Reference in New Issue