[TUHS] tabs vs spaces - entab, detab

Greg 'groggy' Lehey grog at lemis.com
Fri Mar 5 07:29:17 AEST 2021


On Thursday,  4 March 2021 at 15:27:27 -0600, Will Senn wrote:
> On 3/4/21 3:24 PM, Greg 'groggy' Lehey wrote:
>> FWIW, FreeBSD's style(9) man page
>> (https://www.freebsd.org/cgi/man.cgi?query=style&apropos=0&sektion=9&manpath=FreeBSD+12.2-RELEASE+and+Ports&arch=default&format=html)
>> includes:
>>
>>     Indentation is an 8 character tab.  Second level indents are four
>>     spaces.
>>
>> I've always used 8 character tabs (though in my own code I don't stick
>> to style(9)).  As others have commented, it's the Unix standard, and
>> the confusion between tabs and spaces is bad enough without changing
>> the relationship.
>
> Wow, mixed tabs and spaces? On purpose? That's nuts :).

FWIW, I do this in my own code too.  Once you know about it, it's not
an issue.  It helps to have an editor that highlights tab characters.

Greg
--
Sent from my desktop computer.
Finger grog at lemis.com for PGP public key.
See complete headers for address and phone numbers.
This message is digitally signed.  If your Microsoft mail program
reports problems, please read http://lemis.com/broken-MUA
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 163 bytes
Desc: not available
URL: <http://minnie.tuhs.org/pipermail/tuhs/attachments/20210305/0703ddf3/attachment.sig>


More information about the TUHS mailing list