Browse Source

LaTeX export: Fix regexp bug.

Report and patch by Baoqiu Cui
Carsten Dominik 16 years ago
parent
commit
1bc9b1e302
2 changed files with 5 additions and 1 deletions
  1. 4 0
      lisp/ChangeLog
  2. 1 1
      lisp/org-latex.el

+ 4 - 0
lisp/ChangeLog

@@ -1,3 +1,7 @@
+2009-04-15  Carsten Dominik  <carsten.dominik@gmail.com>
+
+	* org-latex.el (org-export-latex-keywords): Fix regexp bug.
+
 2009-04-14  Carsten Dominik  <carsten.dominik@gmail.com>
 
 	* org-compat.el (org-sha1-string): Function removed.

+ 1 - 1
lisp/org-latex.el

@@ -1096,7 +1096,7 @@ The conversion is made depending of STRING-BEFORE and STRING-AFTER."
 		    ".*" ; including the time stamp....
 		    )))
     (while (re-search-forward re nil t)
-      (replace-match (format "\\\\texttt{%s}" (match-string 0)) t))))
+      (replace-match (format "\\texttt{%s}" (match-string 0)) t t))))
 
 (defun org-export-latex-fixed-width (opt)
   "When OPT is non-nil convert fixed-width sections to LaTeX."