summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <n.goaziou@gmail.com>2011-08-29 13:05:57 +0200
committerNicolas Goaziou <n.goaziou@gmail.com>2011-08-29 13:05:57 +0200
commitd6aa8ffa13c0070234a0a5a7860c201e00ed7b0c (patch)
tree20fb33889ee9a46b984d53106b38ec85ea753c7e
parent9e52be725343381c9cb31d815f87f11e2be61b2f (diff)
downloadorg-mode-d6aa8ffa13c0070234a0a5a7860c201e00ed7b0c.tar.gz
org-footnote: fix xhtml export
* lisp/org-footnote.el (org-footnote-normalize): be sure to separate the last footnote definition from the rest of the buffer. Thanks to Jambunathan K for reporting this.
-rw-r--r--lisp/org-footnote.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/org-footnote.el b/lisp/org-footnote.el
index 9765aaf..04389ef 100644
--- a/lisp/org-footnote.el
+++ b/lisp/org-footnote.el
@@ -774,7 +774,7 @@ Additional note on `org-footnote-insert-pos-for-preprocessor':
(when (and (derived-mode-p 'message-mode)
(save-excursion
(re-search-forward message-signature-separator nil t)))
- (open-line 2))
+ (open-line 1))
(when org-footnote-tag-for-non-org-mode-files
(insert "\n" org-footnote-tag-for-non-org-mode-files "\n")))
((and org-footnote-section (not export-props))
@@ -787,6 +787,7 @@ Additional note on `org-footnote-insert-pos-for-preprocessor':
(insert (mapconcat (lambda (x) (format "\n[%s] %s"
(nth (if sort-only 0 1) x) (nth 2 x)))
ref-table "\n"))
+ (unless (eobp) (insert "\n"))
;; When exporting, add newly inserted markers along with their
;; associated definition to `org-export-footnotes-seen'.
(when export-props