Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Mar 2005 09:28:16 +0100
From:      Chris Zumbrunn <chris@czv.com>
To:        "Devon H. O'Dell" <dodell@sitetronics.com>
Cc:        www@FreeBSD.org
Subject:   Re: Tabs and spaces in www and doc
Message-ID:  <6fbbcee43d38ac88f0daa86ebbd0a1e8@czv.com>
In-Reply-To: <1110269526.3928.6.camel@localhost.localdomain>
References:  <200503080336.j283aPuE084945@freefall.freebsd.org> <1110268418.3928.2.camel@localhost.localdomain> <ccb1ebd411024b4df20e965805455850@czv.com> <1110269526.3928.6.camel@localhost.localdomain>

next in thread | previous in thread | raw e-mail | index | archive | help

On Mar 8, 2005, at 9:12 AM, Devon H. O'Dell wrote:

> On Tue, 2005-03-08 at 09:08 +0100, Chris Zumbrunn wrote:
>> On Mar 8, 2005, at 8:53 AM, Devon H. O'Dell wrote:
>>
>>> Again, another thing I'm sure there's a good reason for, but why do 
>>> www
>>> (and doc, I suppose) use two spaces up until you get to 8, and then 
>>> use
>>> a tab? Why not use tabs and set the width to two spaces? Spaces make 
>>> it
>>> a real hassle to (re)format ;).
>>
>> I've seen the opposite also: One tab followed by spaces. And 
>> differences
>> from line to line, depending on who edited last. Certainly, it would 
>> be
>> good to know what should be used, tabs or spaces, so that things can 
>> be
>> cleaned up while working on it.
>
> The one tab occurs when it can replace 8 spaces. I personally think 
> this
> is bad style (but don't want to start YATVS war), especially since My
> Favorite Editor(tm) defaults to a tab size of two spaces.

OK, so I screwed up when I replaced tabs with spaces on lines I edited. 
The
current "rule" is to indent with two spaces but replace 8 spaces with a 
tab?

For most other projects, I usually configure my editor to produce 4 
spaces
per tab, generally resulting in tab free code. But I'm happy to adjust 
to
whatever is deemed appropriate for www and doc.

/czv



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6fbbcee43d38ac88f0daa86ebbd0a1e8>