org-e-latex: Fix code typo

* contrib/lisp/org-e-latex.el (org-e-latex--text-markup): Fix code typo.
This commit is contained in:
Nicolas Goaziou 2012-05-05 20:09:02 +02:00
parent 64cdd8879b
commit 1d0f8b2611
1 changed files with 1 additions and 1 deletions

View File

@ -841,7 +841,7 @@ See `org-e-latex-text-markup-alist' for details."
(while (string-match "[\\{}$%&_#~^]" text)
(setq char (match-string 0 text))
(if (> (match-beginning 0) 0)
(setq rtn (concat rtn (substring value 0 (match-beginning 0)))))
(setq rtn (concat rtn (substring text 0 (match-beginning 0)))))
(setq text (substring text (1+ (match-beginning 0))))
(setq char (or (cdr (assoc char trans)) (concat "\\" char))
rtn (concat rtn char)))