Bläddra i källkod

footnote: Improve last commit

* lisp/org-footnote.el (org-footnote--allow-reference-p): Improve last
commit.
Nicolas Goaziou 3 år sedan
förälder
incheckning
94b410b32c
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      lisp/org-footnote.el

+ 2 - 2
lisp/org-footnote.el

@@ -281,10 +281,10 @@ otherwise."
 	    (save-excursion (goto-char (org-element-property :end context))
 			    (skip-chars-backward " \r\t\n")
 			    (if (eq (org-element-class context) 'object) (point)
-			      (1+ (line-beginning-position 2))))))
+			      (line-beginning-position 2)))))
        ;; At the beginning of a footnote definition, right after the
        ;; label, is OK.
-       ((eq type 'footnote-definition) (looking-at (rx (or space buffer-end))))
+       ((eq type 'footnote-definition) (looking-at (rx space)))
        ;; Other elements are invalid.
        ((eq (org-element-class context) 'element) nil)
        ;; Just before object is fine.