Thank you Charles Berry and John Kitchin for your replies.

John Kitchin <jkitc...@andrew.cmu.edu> writes:

> I have org-src-preserve-indentation set to t.
>
> Charles C. Berry writes:
>
>> 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.

The -i switch did not work for me but setting
org-src-preserve-indentation did.

Thanks again,
Roger

Reply via email to