summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <mail@nicolasgoaziou.fr>2016-12-13 09:13:37 +0100
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2016-12-13 09:13:37 +0100
commit7274786f6ecd626d487332507344ae862aac3023 (patch)
treeb0e8367e91ea59be6cdd82570adc6fd7fdff9c75
parent591ca3a0f375163a0362825ef9d307874dda4acb (diff)
parente491ab31c63661860730bd11a397e12a056d914e (diff)
downloadorg-mode-7274786f6ecd626d487332507344ae862aac3023.tar.gz
Merge branch 'maint'
-rw-r--r--lisp/ox-latex.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el
index 900cd55..21518f9 100644
--- a/lisp/ox-latex.el
+++ b/lisp/ox-latex.el
@@ -2707,7 +2707,8 @@ containing export options. Modify DATA by side-effect and return it."
(or (string-prefix-p "\\(" value)
(string-match-p "\\`\\$[^$]" value))))
((and type (or `subscript `superscript))
- (not (org-element-map b type #'identity info t)))))))
+ (not (memq type (mapcar #'org-element-type
+ (org-element-contents b)))))))))
(org-element-map data '(entity latex-fragment subscript superscript)
(lambda (object)
;; Skip objects already wrapped.