From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jambunathan K Subject: Re: odt export to google-docs problem Date: Fri, 18 Nov 2011 11:21:53 +0530 Message-ID: <817h2y0yh2.fsf@gmail.com> References: <81sjlnawrw.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:54941) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RRHN3-0003Hw-Qg for emacs-orgmode@gnu.org; Fri, 18 Nov 2011 00:52:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RRHN2-0001My-OB for emacs-orgmode@gnu.org; Fri, 18 Nov 2011 00:52:17 -0500 Received: from mail-iy0-f169.google.com ([209.85.210.169]:61322) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RRHN2-0001Mk-L2 for emacs-orgmode@gnu.org; Fri, 18 Nov 2011 00:52:16 -0500 Received: by iaek3 with SMTP id k3so3889625iae.0 for ; Thu, 17 Nov 2011 21:52:15 -0800 (PST) In-Reply-To: (suvayu ali's message of "Thu, 17 Nov 2011 23:51:10 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: suvayu ali Cc: Rustom Mody , emacs-orgmode Suvayu/Rustom suvayu ali writes: > Hi Jambunathan, > > On Thu, Nov 17, 2011 at 11:06, Jambunathan K wrote: >> Can anyone else reproduce this? > > I can replicate this. The odt file exported by org-odt is not accepted > by google docs even though libreoffice opens it without problems. > However it I open it with libreoffice and say edit and save, google > docs then accepts the new file. With my some experimentation, I am able to reproduce it now. I have this in my .emacs. ,---- | (setq org-export-odt-prettify-xml t) `---- and it was preventing me to "see" the problem in the first place. The above variable is a custom variable and when it is true, the exporter runs indent-region on all xml files that is part of the final odt file. The default setting of this variable if off, btw, (as otherwise it could slow things down for large exported files.) Since I often have to examine the xml, I have this variable on. This setting helps exporting to google directly i.e., I don't have to edit and resave the file for succesful loading, as Suvayu is suggesting. Indentation only makes whitespace changes and it shouldn't affect how XML files are read in. So, I am unable to explain why Google accepts the indented XML file and not the original one. Anyways turn that variable on and let me know what you see. ps: It seems like there is a bug on Google side of things. Since it only says the file is corrupt and not what the *actual* corruption is I am out of my wits. So basically I am shooting in the dark ... Thanks for helping out here. May be as time progresses an understanding will emerge. > I have attached both odt files along with the org file. > > PS: tested with minimal Emacs 24 and org release_7.7-543-g176ddba --