Pārlūkot izejas kodu

ox-latex: Fix matrices export

* lisp/ox-latex.el (org-latex--wrap-latex-matrices): Do not add spurious
  blank lines within a matrices block.

Reported-by: thomas.stenhaug@gmail.com
<http://permalink.gmane.org/gmane.emacs.orgmode/109854>
Nicolas Goaziou 8 gadi atpakaļ
vecāks
revīzija
e5ca11cab8
1 mainītis faili ar 4 papildinājumiem un 0 dzēšanām
  1. 4 0
      lisp/ox-latex.el

+ 4 - 0
lisp/ox-latex.el

@@ -2661,8 +2661,12 @@ it."
 		(org-element-extract-element previous)
 		(org-element-adopt-elements matrices previous)
 		(setq previous next))
+	      ;; Inherit `:post-blank' from the value of the last
+	      ;; swallowed table.  Set the latter's `:post-blank'
+	      ;; value to 0 so as to not duplicate empty lines.
 	      (org-element-put-property
 	       matrices :post-blank (org-element-property :post-blank previous))
+	      (org-element-put-property previous :post-blank 0)
 	      (org-element-extract-element previous)
 	      (org-element-adopt-elements matrices previous))))))
     info)