Browse Source

ox-texinfo: Escape @ { } in index

* lisp/ox-texinfo.el (org-texinfo-keyword): Escape @ { } in index.
Nicolas Goaziou 3 years ago
parent
commit
a621289953
1 changed files with 2 additions and 1 deletions
  1. 2 1
      lisp/ox-texinfo.el

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