forked from mirrors/org-mode
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:
parent
96c70f3d7e
commit
2a3663b314
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue