org-odt.el: Fix previous commit

* lisp/org-odt.el (org-odt-init-outfile): Fix previous commit.
Make sure that nxml-mode is loaded before let-binding
`nxml-auto-insert-xml-declaration-flag'.
This commit is contained in:
Jambunathan K 2012-05-25 18:53:33 +05:30
parent 60587ea91c
commit 35b9556cc3
1 changed files with 3 additions and 3 deletions

View File

@ -2211,9 +2211,9 @@ captions on export.")
(content-file (expand-file-name "content.xml" outdir)))
;; init conten.xml
(with-current-buffer
(require 'nxml-mode)
(let ((nxml-auto-insert-xml-declaration-flag nil))
(find-file-noselect content-file t)))
(find-file-noselect content-file t))
;; reset variables
(setq org-odt-manifest-file-entries nil