Browse Source

LaTeX Export: Fix vertical lines in tables

Carsten Dominik 16 years ago
parent
commit
4ec5a19ecf
2 changed files with 10 additions and 4 deletions
  1. 5 0
      lisp/ChangeLog
  2. 5 4
      lisp/org-export-latex.el

+ 5 - 0
lisp/ChangeLog

@@ -1,3 +1,8 @@
+2009-03-16  Carsten Dominik  <carsten.dominik@gmail.com>
+
+	* org-export-latex.el (org-export-latex-tables): Fix vertical
+	lines in tables.
+
 2009-03-15  Carsten Dominik  <carsten.dominik@gmail.com>
 
 	* org.el (org-read-date-history): New variable.

+ 5 - 4
lisp/org-export-latex.el

@@ -204,7 +204,8 @@ For example \orgTITLE for #+TITLE."
   :type 'boolean)
 
 (defcustom org-export-latex-tables-column-borders nil
-  "When non-nil, group of columns are surrounded with borders."
+  "When non-nil, grouping columns can cause outer vertical lines in tables.
+When nil, grouping causes only separation lines between groups."
   :group 'org-export-latex
   :type 'boolean)
 
@@ -1122,10 +1123,10 @@ The conversion is made depending of STRING-BEFORE and STRING-AFTER."
 		     (lambda (x)
 		       (setq gr (pop org-table-colgroup-info))
 		       (format "%s%%s%s"
-			       (cond ((eq gr ':start)
-				      (prog1 (if colgropen "|" "")
+			       (cond ((eq gr :start)
+				      (prog1 (if colgropen "|" "|")
 					(setq colgropen t)))
-				     ((eq gr ':startend)
+				     ((eq gr :startend)
 				      (prog1 (if colgropen "|" "|")
 					(setq colgropen nil)))
 				     (t ""))