changeset 100625:4655d81daa9a

2008-12-21 Carsten Dominik <dominik@science.uva.nl> * org-export-latex.el (org-export-latex-special-chars): Handle case where there is no match group 3.
author Carsten Dominik <dominik@science.uva.nl>
date Sun, 21 Dec 2008 10:03:15 +0000
parents fb40d63bb761
children 096796d792df
files lisp/org/ChangeLog lisp/org/org-export-latex.el
diffstat 2 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/org/ChangeLog	Sun Dec 21 09:38:09 2008 +0000
+++ b/lisp/org/ChangeLog	Sun Dec 21 10:03:15 2008 +0000
@@ -2,6 +2,8 @@
 
 	* org-export-latex.el (org-export-latex-make-header): Double the
 	commenting % in the time stamp format.
+	(org-export-latex-special-chars): Handle case where there is no
+	match group 3.
 
 2008-12-20  Carsten Dominik  <carsten.dominik@gmail.com>
 
--- a/lisp/org/org-export-latex.el	Sun Dec 21 09:38:09 2008 +0000
+++ b/lisp/org/org-export-latex.el	Sun Dec 21 10:03:15 2008 +0000
@@ -913,7 +913,8 @@
 		       (replace-match (or (save-match-data
 					    (org-export-latex-treat-backslash-char
 					     (match-string 1)
-					     (match-string 3))) "") t t))
+					     (or (match-string 3) "")))
+					  "") t t))
 		      ((member (match-string 2) '("_" "^"))
 		       (replace-match (or (save-match-data
 					    (org-export-latex-treat-sub-super-char