summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <mail@nicolasgoaziou.fr>2018-08-30 23:59:01 +0200
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2018-08-30 23:59:01 +0200
commitcbb7be9c2561b0fdf3f72938e819fb4fe0e3bc00 (patch)
treed337e17c72ea91ad496ca8dda57f64f0de64c3e1
parentee4dbaff60300ee1b4e9d91fe1e54e9fdf9ef257 (diff)
downloadorg-mode-cbb7be9c2561b0fdf3f72938e819fb4fe0e3bc00.tar.gz
Revert "org-footnote: Fix location after moving to definition"
This reverts commit 8500501984b6b0e283722d6e96c4e359f818f7cb.
-rw-r--r--lisp/org-footnote.el2
-rw-r--r--testing/lisp/test-org-footnote.el2
2 files changed, 2 insertions, 2 deletions
diff --git a/lisp/org-footnote.el b/lisp/org-footnote.el
index 69f9eec..ec4287e 100644
--- a/lisp/org-footnote.el
+++ b/lisp/org-footnote.el
@@ -544,7 +544,7 @@ value if point was successfully moved."
(user-error "Definition is outside narrowed part of buffer")))
(org-mark-ring-push)
(goto-char def-start)
- (looking-at (format "\\[fn:%s[]:] ?" (regexp-quote label)))
+ (looking-at (format "\\[fn:%s[]:]" (regexp-quote label)))
(goto-char (match-end 0))
(org-show-context 'link-search)
(when (derived-mode-p 'org-mode)
diff --git a/testing/lisp/test-org-footnote.el b/testing/lisp/test-org-footnote.el
index 6ff8fea..99e4ca9 100644
--- a/testing/lisp/test-org-footnote.el
+++ b/testing/lisp/test-org-footnote.el
@@ -231,7 +231,7 @@
;; anonymous footnotes.
(should
(equal
- "Definition."
+ " Definition."
(org-test-with-temp-text "Some text\n[fn:1] Definition."
(org-footnote-goto-definition "1")
(buffer-substring (point) (point-max)))))