From mboxrd@z Thu Jan 1 00:00:00 1970 From: Linus Arver Subject: Re: including files and org-src-preserve-indentation Date: Fri, 20 Feb 2015 19:27:18 -0800 Message-ID: <20150221032716.GA12319@k0> References: <20150122003449.GA28336@k0> <20150208053240.GA18082@k0> <87oaovjcv6.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34393) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YP0j2-0003St-QN for emacs-orgmode@gnu.org; Fri, 20 Feb 2015 22:27:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YP0iy-0003Zx-JS for emacs-orgmode@gnu.org; Fri, 20 Feb 2015 22:27:28 -0500 Received: from mail-pa0-x230.google.com ([2607:f8b0:400e:c03::230]:35254) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YP0iy-0003Zt-C1 for emacs-orgmode@gnu.org; Fri, 20 Feb 2015 22:27:24 -0500 Received: by padfa1 with SMTP id fa1so12744002pad.2 for ; Fri, 20 Feb 2015 19:27:22 -0800 (PST) Content-Disposition: inline In-Reply-To: <87oaovjcv6.fsf@nicolasgoaziou.fr> 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: emacs-orgmode@gnu.org Cc: hniksic@xemacs.org On Sun, Feb 15, 2015 at 06:36:29PM +0100, Nicolas Goaziou wrote: > Hello, > > Linus Arver writes: > > >> When I call org-publish-current-project, the included file's TAB > >> characters automatically become converted into spaces. Is there an > >> orgmode way of preventing this auto-conversion? > > I cannot reproduce it. Could you provide an ECM? So, after I created a minimal complete example (ECM), I loaded in the latest org-mode (Git HEAD) and realized that the problem does not exist in Org. It is with the `htmlize` [1] package. That is, if I simply uninstall that package from my MELPA folder, the tabs stay as tabs, regardless of what version of Org (latest Git HEAD or 8.2.10) I use. > Also, what happens if > you do a regular export (no publishing)? If I call `org-html-export-to-html`, I get the same behavior. I.e., if I have `htmlize` installed, the tabs get converted into spaces. If I remove `htmlize`, the tabs are preserved nicely. I would file a bug report upstream, but it appears that `htmlize` does not have a website. It looks like the official version of `htmlize` [2] has "untabify" (grep it) hardcoded into the program, so a quick fix may not be in order any time soon. Meanwhile from the Org side, perhaps we can have a way to let the user select which program to use for syntax highlighting? Maybe something external like Pygments [3]? It would be helpful if Org could tell the user that it found (or did not find) the `htmlize` package and that it was used (or not used) when calling either `org-publish-current-project` or `org-html-export-to-html`. -L [1]: http://melpa.org/#/htmlize [2]: http://fly.srk.fer.hr/~hniksic/emacs/htmlize.el.cgi [3]: http://pygments.org/