Browse Source

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.
Bastien Guerry 5 years ago
parent
commit
80724ea2a6
1 changed files with 4 additions and 2 deletions
  1. 4 2
      lisp/ox-odt.el

+ 4 - 2
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