Browse Source

Merge branch 'maint'

Nicolas Goaziou 4 năm trước cách đây
mục cha
commit
196aae41c5
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      lisp/ox-latex.el

+ 2 - 2
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))