summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <mail@nicolasgoaziou.fr>2017-06-14 21:27:02 +0200
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2017-06-14 21:27:02 +0200
commita6212899531cbd2ed10907609550247d822bcad1 (patch)
treee80befda879bf2be6410d65089186100fefb45bb
parentb47920ed208119a0a9de307b1839a4aed54572ef (diff)
downloadorg-mode-a6212899531cbd2ed10907609550247d822bcad1.tar.gz
ox-texinfo: Escape @ { } in index
* lisp/ox-texinfo.el (org-texinfo-keyword): Escape @ { } in index.
-rw-r--r--lisp/ox-texinfo.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/ox-texinfo.el b/lisp/ox-texinfo.el
index f7bc134..d69a304 100644
--- a/lisp/ox-texinfo.el
+++ b/lisp/ox-texinfo.el
@@ -969,7 +969,8 @@ contextual information."
"Transcode a KEYWORD element from Org to Texinfo.
CONTENTS is nil. INFO is a plist holding contextual information."
(let ((key (org-element-property :key keyword))
- (value (org-element-property :value keyword)))
+ (value (org-texinfo--sanitize-content
+ (org-element-property :value keyword))))
(cond
((string= key "TEXINFO") value)
((string= key "CINDEX") (format "@cindex %s" value))