Browse Source

footnote: Improve last commit

* lisp/org-footnote.el (org-footnote--allow-reference-p): Improve last
commit.
Nicolas Goaziou 3 năm trước cách đây
mục cha
commit
94b410b32c
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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.