Browse Source

org-e-latex: Fix code typo

* contrib/lisp/org-e-latex.el (org-e-latex--text-markup): Fix code typo.
Nicolas Goaziou 13 years ago
parent
commit
1d0f8b2611
1 changed files with 1 additions and 1 deletions
  1. 1 1
      contrib/lisp/org-e-latex.el

+ 1 - 1
contrib/lisp/org-e-latex.el

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