From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Charles C. Berry" Subject: Re: source block exported with tabs replacing spaces? Date: Wed, 10 Jun 2015 07:36:34 -0700 Message-ID: References: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44595) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z2h7S-0005za-Hd for emacs-orgmode@gnu.org; Wed, 10 Jun 2015 10:36:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z2h7O-00055D-HK for emacs-orgmode@gnu.org; Wed, 10 Jun 2015 10:36:42 -0400 Received: from iport-bcv1-out.ucsd.edu ([132.239.0.119]:19204) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z2h7O-00054s-9N for emacs-orgmode@gnu.org; Wed, 10 Jun 2015 10:36:38 -0400 In-Reply-To: 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: Alan Schmitt Cc: emacs-orgmode On Wed, 10 Jun 2015, Alan Schmitt wrote: > Hello, > > I'm working on a presentation and I noticed that some of my source > blocks have spaces exported as tabs. Here is an example: > > #+begin_src js :wrap center :results output :exports both > console.log((![]+[])[+!+[]]+ > (![]+[])[!+[]+!+[]]+ > (![]+[])[+!+[]]+ > ([][[]]+[])[+!+[]]) > #+end_src > > get exported to the following latex code > \begin{minted}[frame=lines,fontsize=\scriptsize]{js} > console.log((![]+[])[+!+[]]+ > (![]+[])[!+[]+!+[]]+ > (![]+[])[+!+[]]+ > ([][[]]+[])[+!+[]]) > \end{minted} > > (Note the tabs instead of the 8 spaces). I have `indent-tabs-mode' set > to nil in both the file and the exporter setting (I'm using the > asynchronous exporter with a specified file). > > How can I tell org to preserve the spaces? Customize `org-src-preserve-indentation' HTH, Chuck