LaTeX export: Fix regexp bug.

Report and patch by Baoqiu Cui
This commit is contained in:
Carsten Dominik 2009-04-15 08:34:31 +02:00
parent 281a116938
commit 1bc9b1e302
2 changed files with 5 additions and 1 deletions

View File

@ -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.

View File

@ -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."