Преглед на файлове

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 преди 12 години
родител
ревизия
80724ea2a6
променени са 1 файла, в които са добавени 4 реда и са изтрити 2 реда
  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