summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <mail@nicolasgoaziou.fr>2021-04-06 13:50:46 +0200
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2021-04-06 13:50:46 +0200
commit196aae41c58c355822bc09e7c2c02f0a3d8eefa3 (patch)
treecd8eba5b0c09b87a053bbad7fa237e5c6213a809
parent5a91a232f7d72b7ed16e4c6cf34d6a721b0bce86 (diff)
parent75756789597fbcae219909caad85a6d4c4b536c2 (diff)
downloadorg-mode-196aae41c58c355822bc09e7c2c02f0a3d8eefa3.tar.gz
Merge branch 'maint'
-rw-r--r--lisp/ox-latex.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el
index f492ebb..c3fc83b 100644
--- a/lisp/ox-latex.el
+++ b/lisp/ox-latex.el
@@ -1963,8 +1963,8 @@ holding contextual information."
;; commands (like \section, etc.), and this causes compilation to fail.
;; So, within headings it's a good idea to replace any instances of \verb
;; with \texttt.
- (code . (lambda (_ c _) (org-latex--protect-texttt c)))
- (verbatim . (lambda (_ c _) (org-latex--protect-texttt c))))))
+ (code . (lambda (o _ _) (org-latex--protect-texttt (org-element-property :value o))))
+ (verbatim . (lambda (o _ _) (org-latex--protect-texttt (org-element-property :value o)))))))
(text
(org-export-data-with-backend
(org-element-property :title headline) section-back-end info))