From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jambunathan K Subject: Re: Cannot convert to Odt Date: Thu, 11 Jul 2013 22:39:17 +0530 Message-ID: <87vc4hja6a.fsf@gmail.com> References: <87hag2b8qi.fsf@anx.com> <871u765lpr.fsf@gmail.com> <87zjtudqsx.fsf@anx.com> <87ehb5q11a.fsf@gmail.com> <87wqox2md9.fsf@anx.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44808) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UxKLK-00089p-Pb for emacs-orgmode@gnu.org; Thu, 11 Jul 2013 13:07:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UxKLG-0003fI-3T for emacs-orgmode@gnu.org; Thu, 11 Jul 2013 13:07:46 -0400 Received: from mail-pb0-x22e.google.com ([2607:f8b0:400e:c01::22e]:53865) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UxKLF-0003fA-Th for emacs-orgmode@gnu.org; Thu, 11 Jul 2013 13:07:42 -0400 Received: by mail-pb0-f46.google.com with SMTP id rq2so8088677pbb.19 for ; Thu, 11 Jul 2013 10:07:41 -0700 (PDT) In-Reply-To: <87wqox2md9.fsf@anx.com> (Tim Hawes's message of "Thu, 11 Jul 2013 10:37:54 -0400") 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: Tim Hawes Cc: emacs-orgmode Mode Tim Hawes writes: > The problem was a shell code fragment, the parser did not know what to > do with: > #+BEGIN_SRC sh > nodaemon) > nodaemon() > ;; > #+END_SRC > > Just making the code more comprehensible as shell code as thus: > > #+BEGIN_SRC sh > case "$1" in > .... > nodaemon) > nodaemon() > ;; > .... > esac > #+END_SRC > > or changing the code segment into EXAMPLE instead, fixes it. It converts > under 7.8.11 and 8.0.5 I don't use Org-mode or Babel myself. I don't understand shell code. Different backends use different engines for colorizing source blocks. ODT uses htmlfontify. HTML uses htmlize. LaTeX probably relies on TeX packages like minted etc. I suspect the problem could be in htmlfontify library or the exporter interfaces with it. If you could post a complete minimal snippet by removing ellipses etc., I can do some post-mortem and narrow the issue further. You can turn off the colors on source blocks by customizing, M-x customize-variable RET org-odt-fontify-srcblocks RET So, instead of switching to EXAMPLE blocks you can just turn off colorization and see whether problem is reproducible. This is a sure proof that there is something amiss in htmlfontify.el or how the expoter interfaces with it.