summaryrefslogtreecommitdiff
path: root/lisp/mail
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/mail')
-rw-r--r--lisp/mail/footnote.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/mail/footnote.el b/lisp/mail/footnote.el
index da7e5fcf579..b2374490026 100644
--- a/lisp/mail/footnote.el
+++ b/lisp/mail/footnote.el
@@ -501,7 +501,8 @@ styles."
(regexp-quote footnote-end-tag)))
nil t)
(unless (beginning-of-line) t))
- (goto-char (point-max)))))
+ (Footnote-goto-char-point-max)
+ (re-search-backward (concat "^" footnote-section-tag-regexp) nil t))))
(unless (looking-at "^$")
(insert "\n"))
(when (eobp)