Bastien <b...@gnu.org> writes: > Jambunathan K <kjambunat...@gmail.com> writes: > >>> Can you fix it? >> >> OK. Fixed in both maint and master. The exported ODT file will not >> have multiple XML declrations. > > Great, thanks a lot!
This fix is back-firing. I have pushed an updated fix. I ignored the following warning Warning: defvar ignored because nxml-auto-insert-xml-declaration-flag is let-bound which leads to the following error while creating a new xml file File mode specification error: (void-variable nxml-auto-insert-xml-declaration-flag) To workaround above issue (i.e., if this fix is not applied for whatever reasons), make sure you do M-x load-library RET nxml-mode RET before starting a ODT export or add a (require 'nxml-mode) to your init file. Note:: nxml-mode is not really needed for ODT export to go through [1]. I will remove this dependency for the new exporter (org-e-odt.el) but retain it for the current exporter (org-odt.el) [2]. Footnotes: [1] nxml-mode is triggered because of the auto-mode activities on XML buffer. The mode chosen by auto-mode would depend upon user configuration and it is not guaranteed to be nxml-mode in all cases. [2] I don't want to distrub the stability of org-odt.el in Emacs-24.1 due to last minute changes.