summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Guerry <bzg@altern.org>2013-03-13 16:02:34 (GMT)
committer Bastien Guerry <bzg@altern.org>2013-03-13 16:02:34 (GMT)
commit80724ea2a6706f8ea4dd6e162cef7a31bc83d691 (patch)
tree641b59f0a264c9c2632bc8a901d5e7858ed22e5f
parentc5490f0ef05d4b1ea76bf38f2f34e58dc1bbc12a (diff)
downloadorg-mode-80724ea2a6706f8ea4dd6e162cef7a31bc83d691.zip
org-mode-80724ea2a6706f8ea4dd6e162cef7a31bc83d691.tar.gz
ox-odt.el (org-odt-code, org-odt-verbatim): Use `org-odt--encode-plain-text'
* ox-odt.el (org-odt-code, org-odt-verbatim): Use `org-odt--encode-plain-text'. Thanks to Bernd Haug for reporting this.
-rw-r--r--lisp/ox-odt.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/ox-odt.el b/lisp/ox-odt.el
index d9dd525..e700600 100644
--- a/lisp/ox-odt.el
+++ b/lisp/ox-odt.el
@@ -1619,7 +1619,8 @@ channel."
CONTENTS is nil. INFO is a plist used as a communication
channel."
(format "<text:span text:style-name=\"%s\">%s</text:span>"
- "OrgCode" (org-element-property :value code)))
+ "OrgCode" (org-odt--encode-plain-text
+ (org-element-property :value code))))
;;;; Comment
@@ -3725,7 +3726,8 @@ holding contextual information."
CONTENTS is nil. INFO is a plist used as a communication
channel."
(format "<text:span text:style-name=\"%s\">%s</text:span>"
- "OrgCode" (org-element-property :value verbatim)))
+ "OrgCode" (org-odt--encode-plain-text
+ (org-element-property :value verbatim))))
;;;; Verse Block