Bläddra i källkod

LaTeX export: Do not mistake table.el borders for strike-through emphasis.

Carsten Dominik 15 år sedan
förälder
incheckning
1d4ee49c91
3 ändrade filer med 9 tillägg och 2 borttagningar
  1. 3 0
      lisp/ChangeLog
  2. 2 1
      lisp/org-exp.el
  3. 4 1
      lisp/org-latex.el

+ 3 - 0
lisp/ChangeLog

@@ -1,5 +1,8 @@
 2010-03-24  Carsten Dominik  <carsten.dominik@gmail.com>
 
+	* org-latex.el (org-export-latex-fontify): Do not mistake table.el
+	borders for strike-through emphasis.
+
 	* org-freemind.el (org-freemind-write-mm-buffer): Simplify the
 	handling of odd levels.
 

+ 2 - 1
lisp/org-exp.el

@@ -554,7 +554,8 @@ When nil, Org-mode's own HTML generator is used when possible (i.e. if
 the table does not use row- or column-spanning).  This has the
 advantage, that the automatic HTML conversions for math symbols and
 sub/superscripts can be applied.  Org-mode's HTML generator is also
-much faster."
+much faster.  The LaTeX exporter always use the native exporter for
+table.el tables."
   :group 'org-export-tables
   :type 'boolean)
 

+ 4 - 1
lisp/org-latex.el

@@ -1736,7 +1736,10 @@ The conversion is made depending of STRING-BEFORE and STRING-AFTER."
 		    (save-match-data
 		      (and (org-at-table-p)
 			   (string-match
-			    "[|\n]" (buffer-substring beg end))))))
+			    "[|\n]" (buffer-substring beg end)))))
+		  (and (equal (match-string 3) "+")
+		       (save-match-data
+			 (string-match "\\`-+\\'" (match-string 4)))))
 	(setq s (match-string 4))
 	(setq rpl (concat (match-string 1)
 			  (org-export-latex-emph-format (cadr emph)