emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] How to prevent tabs from turning into spaces in source-code expo


From: Nicolas Goaziou
Subject: Re: [O] How to prevent tabs from turning into spaces in source-code export?
Date: Thu, 30 May 2013 17:24:53 +0200

Hello,

Andreas Röhler <address@hidden> writes:

> as indentation might be provided by TAB and whitespace chars likewise,
> what about following setting of `indent-tabs-mode'?

It is indeed possible to propagate `indent-tabs-mode' value to the
original buffer's copy where export happens, but it will not be enough
to guaranty that indentation related TAB characters are preserved (e.g.,
if relative indentation falls below `tab-width' value although global
one was above).

The only way to make sure TAB will be preserved is to set
`org-src-preserve-indentation' to a non-nil value (or, locally, to use
"-i" switch).


Regards,

-- 
Nicolas Goaziou



reply via email to

[Prev in Thread] Current Thread [Next in Thread]