diff --git a/lisp/org-footnote.el b/lisp/org-footnote.el index f2b348988..0524b4164 100644 --- a/lisp/org-footnote.el +++ b/lisp/org-footnote.el @@ -310,10 +310,10 @@ or new, let the user edit the definition of the footnote." (skip-chars-backward " \t\r\n") (delete-region (point) max) (insert "\n\n") - (insert org-footnote-tag-for-non-org-mode-files "\n"))))) - ;; Skip existing footnotes - (while (re-search-forward "^[[:space:]]*\\[[^]]+\\] " nil t) - (forward-line)) + (insert org-footnote-tag-for-non-org-mode-files "\n"))) + ;; Skip existing footnotes + (while (re-search-forward "^[[:space:]]*\\[[^]]+\\] " nil t) + (forward-line)))) (insert "\n[" label "] \n") (goto-char (1- (point))) (message "Edit definition and go back with `C-c &' or, if unique, with `C-c C-c'.")))