Don't convert link description parts that look like numeric footnote

* lisp/org-latex.el (org-export-latex-preprocess): Don't convert link
description parts that look like numeric footnote.

Fixes a problem reported by Thomas S. Dye.
This commit is contained in:
David Maus 2010-12-19 14:54:16 +01:00
parent 96c70f3d7e
commit 2a3663b314
1 changed files with 20 additions and 19 deletions

View File

@ -2316,7 +2316,8 @@ The conversion is made depending of STRING-BEFORE and STRING-AFTER."
;; FIXME: don't protect footnotes from conversion
(when (plist-get org-export-latex-options-plist :footnotes)
(goto-char (point-min))
(while (re-search-forward "\\[\\([0-9]+\\)\\]" nil t)
(while (and (re-search-forward "\\[\\([0-9]+\\)\\]" nil t)
(not (equal (char-before (match-beginning 0)) ?\])))
(org-if-unprotected
(when (and (save-match-data
(save-excursion (beginning-of-line)