From e5ca11cab882838b3afea7abf3794376437505ee Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Mon, 24 Oct 2016 23:33:28 +0200 Subject: [PATCH] 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 --- lisp/ox-latex.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el index 3c9623ef0..57ec1d2b4 100644 --- a/lisp/ox-latex.el +++ b/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)