From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Charles C. Berry" Subject: Re: Preserve tabs in tangled babel output Date: Wed, 11 Mar 2015 07:56:13 -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]:47741) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YVi3Z-0000t9-KS for emacs-orgmode@gnu.org; Wed, 11 Mar 2015 10:56:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YVi3U-0003kg-3H for emacs-orgmode@gnu.org; Wed, 11 Mar 2015 10:56:21 -0400 Received: from iport-bcv1-out.ucsd.edu ([132.239.0.119]:7699) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YVi3T-0003j5-Qr for emacs-orgmode@gnu.org; Wed, 11 Mar 2015 10:56:16 -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: Roger Mason Cc: emacs-orgmode@gnu.org On Wed, 11 Mar 2015, Roger Mason wrote: > Hello, > > This code: > > #+BEGIN_SRC makefile :tangle Makefile > hello: hello.f90 > gfortran hello.f90 > > execute: hello > ./a.out > > clean: > rm -f a.out *.o > #+END_SRC > > (stolen from John Kitchin) produces a Makefile with spaces instead of > tabs. I created the content in makefile mode, with tabs, but emacs > untabifies the output. How can I prevent this? Use the `-i' results switch: #+BEGIN_SRC makefile -i :tangle Makefile or set `org-src-preserve-indentation' non-nil. HTH, Chuck