Browse Source

ox-odt.el (org-odt-link): Fix bug: convert & to & in links

* ox-odt.el (org-odt-link): Fix bug: convert & to & in
links.
Bastien Guerry 12 years ago
parent
commit
1144903cfa
1 changed files with 2 additions and 0 deletions
  1. 2 0
      lisp/ox-odt.el

+ 2 - 0
lisp/ox-odt.el

@@ -2760,6 +2760,8 @@ INFO is a plist holding contextual information.  See
 		     (concat "file://" (expand-file-name raw-path))
 		   (concat "file://" raw-path)))
 		(t raw-path)))
+	 ;; Convert & to & for correct XML representation
+	 (path (replace-regexp-in-string "&" "&" path))
 	 protocol)
     (cond
      ;; Image file.