浏览代码

LaTeX export: Fix compatibility problem with Emacs 21.

Carsten Dominik 16 年之前
父节点
当前提交
792b9776d0
共有 2 个文件被更改,包括 7 次插入2 次删除
  1. 5 0
      lisp/ChangeLog
  2. 2 2
      lisp/org-export-latex.el

+ 5 - 0
lisp/ChangeLog

@@ -1,3 +1,8 @@
+2009-03-10  Carsten Dominik  <carsten.dominik@gmail.com>
+
+	* org-export-latex.el (org-export-latex-tables): Use
+	`org-split-string', for Emacs 21 compatibility.
+
 2009-03-09  Carsten Dominik  <carsten.dominik@gmail.com>
 
 	* org-agenda.el (org-agenda-log-mode-items): Improve docstring.

+ 2 - 2
lisp/org-export-latex.el

@@ -1103,7 +1103,7 @@ The conversion is made depending of STRING-BEFORE and STRING-AFTER."
 			   (string-match "\\<align=\\([^ \t\n\r,]+\\)" attr)
 			   (match-string 1 attr))
 		floatp (or caption label))
-	  (setq lines (split-string raw-table "\n" t))
+	  (setq lines (org-split-string raw-table "\n"))
 	  (apply 'delete-region (list beg end))
 	  (when org-export-table-remove-special-lines
 	    (setq lines (org-table-clean-before-export lines 'maybe-quoted)))
@@ -1146,7 +1146,7 @@ The conversion is made depending of STRING-BEFORE and STRING-AFTER."
 		(mapcar
 		 (lambda(elem)
 		   (or (and (string-match "[ \t]*|-+" elem) 'hline)
-		       (split-string (org-trim elem) "|" t)))
+		       (org-split-string (org-trim elem) "|")))
 		 lines))
 	  (when insert
 	    (insert (org-export-latex-protect-string