Ver Fonte

ox-texinfo.el: Fix escaping special chars in raw-path

* lisp/ox-texinfo.el (org-texinfo-link): Escape @, { and }
characters in the link path.
Bastien Guerry há 4 anos atrás
pai
commit
99defa1959
1 ficheiros alterados com 4 adições e 1 exclusões
  1. 4 1
      lisp/ox-texinfo.el

+ 4 - 1
lisp/ox-texinfo.el

@@ -1047,7 +1047,10 @@ DESC is the description part of the link, or the empty string.
 INFO is a plist holding contextual information.  See
 `org-export-data'."
   (let* ((type (org-element-property :type link))
-	 (raw-path (org-element-property :path link))
+	 (raw-path
+	  (replace-regexp-in-string
+	   "[@{}]" "@\\&"
+	   (org-element-property :path link)))
 	 ;; Ensure DESC really exists, or set it to nil.
 	 (desc (and (not (string= desc "")) desc))
 	 (path (cond