>From 90cb47ff00c667ec499bc32f0b56fa2f48b79de2 Mon Sep 17 00:00:00 2001 From: Jambunathan K Date: Wed, 20 Jul 2011 15:44:12 +0530 Subject: [PATCH 2/3] org-odt: Simplify org-odt-format-org-entity * contrib/lisp/org-odt.el (org-odt-format-org-entity): Simplify. Component xml files in odt document are always utf-8 encoded. As a result, emitting of numeric character references based on utf-8 value is superfluous. --- contrib/lisp/org-odt.el | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/contrib/lisp/org-odt.el b/contrib/lisp/org-odt.el index bd2ea33..e0790de 100644 --- a/contrib/lisp/org-odt.el +++ b/contrib/lisp/org-odt.el @@ -771,9 +771,7 @@ PUB-DIR is set, use this as the publishing directory." (format "\n\n" comment))) (defun org-odt-format-org-entity (wd) - ;; FIXME: Seems to work. But is this correct? - (let ((s (org-entity-get-representation wd 'utf8))) - (and s (format "&#x%x;" (string-to-char s))))) + (org-entity-get-representation wd 'utf8)) (defun org-odt-fill-tabs-and-spaces (line) (replace-regexp-in-string -- 1.7.2.3