summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <mail@nicolasgoaziou.fr>2016-10-24 23:33:28 +0200
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2016-10-24 23:33:28 +0200
commite5ca11cab882838b3afea7abf3794376437505ee (patch)
tree3987e95476c0dad79512ce547c21e1a5a51c1256
parentc58e1b565b35b40472fd908df182105a5c0061c4 (diff)
downloadorg-mode-e5ca11cab882838b3afea7abf3794376437505ee.tar.gz
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>
-rw-r--r--lisp/ox-latex.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el
index 3c9623e..57ec1d2 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)