소스 검색

Footnotes: Fix bug with incorrect parsing of anonymous footnote.

There was a bug with documents with more than one anonymous footnotes,
which would all end up to reference the first one only.  The patch
fixes this problem.
Carsten Dominik 16 년 전
부모
커밋
a50df2a06f
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      lisp/org-footnote.el

+ 1 - 0
lisp/org-footnote.el

@@ -286,6 +286,7 @@ referenced sequence."
 	 (setq def (match-string 4)
 	       ref (or (match-string 1) (match-string 2))
 	       before (char-to-string (char-after (match-beginning 0))))
+	 (if (equal ref "fn:") (setq ref nil))
 	 (if (and ref (setq a (assoc ref ref-table)))
 	     (setq marker (nth 1 a))
 	   (setq marker (number-to-string (incf count))))