summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Guerry <bzg@altern.org>2013-04-08 17:49:34 +0200
committerBastien Guerry <bzg@altern.org>2013-04-08 21:25:09 +0200
commit1144903cfa9fd2d845a90263bf97e24c314c312e (patch)
tree9ceecd94035131f831058c27dadb6164ab92910c
parent1af215bb4668bf3e778175e68fcaf0cb7702f585 (diff)
downloadorg-mode-1144903cfa9fd2d845a90263bf97e24c314c312e.tar.gz
ox-odt.el (org-odt-link): Fix bug: convert & to &amp; in links
* ox-odt.el (org-odt-link): Fix bug: convert & to &amp; in links.
-rw-r--r--lisp/ox-odt.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/ox-odt.el b/lisp/ox-odt.el
index 394530c..7e1390e 100644
--- a/lisp/ox-odt.el
+++ b/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 &amp; for correct XML representation
+ (path (replace-regexp-in-string "&" "&amp;" path))
protocol)
(cond
;; Image file.