Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Apr 2001 01:11:17 -0400
From:      Jim Mock <jim@FreeBSD.org>
To:        Dima Dorfman <dima@unixfreak.org>
Cc:        obrien@FreeBSD.org, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: doc/en_US.ISO_8859-1/books/faq book.sgml
Message-ID:  <20010403011117.A2616@guinness.osdn.com>
In-Reply-To: <20010403045455.0A3A93E09@bazooka.unixfreak.org>; from dima@unixfreak.org on Mon, Apr 02, 2001 at 09:54:54PM -0700
References:  <20010402211043.A84692@dragon.nuxi.com> <20010403045455.0A3A93E09@bazooka.unixfreak.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 02 Apr 2001 at 21:54:54 -0700, Dima Dorfman wrote:
> "David O'Brien" <obrien@FreeBSD.org> writes:
> > On Mon, Apr 02, 2001 at 11:25:13PM -0400, Jim Mock wrote:
> > > >   Log: DocBook police: replace tabs with spaces in the spirit of
> > > >   rev.  1.150.
> > > 
> > > Erm, maybe I missed something, but since when do we use spaces for
> > > 8 spaces instead of a tab?
> > 
> > Agreed.  Would someone please pick and convention and publish it??
> > I never know what to do when I add to our docs.
> 
> AFAIK, the convention is that you use what the rest (or majority) of
> the file you're editing uses.  This is the policy I've seen advocated
> for src/, and it seems to make sense for doc/, too.  At the moment, I
> don't think there's anything to document; different documents use
> different conventions.  E.g., the Handbook is tab-indented, but the
> FAQ is space-indented.  I don't know which one's ``right'' and which
> one's ``wrong''.

Ok, I've always used tabs (even in the FAQ), and the handbook, as you
pointed out, reflects this.  I started to clean up the FAQ probably
about a year ago, but didn't get much further than the preface before I
got distracted by something else (the markup in the FAQ was pretty
mangled back then -- I haven't looked at it enough lately to comment on
it's current state).

Personally, I prefer tabs because vim converts the 8 spaces to a tab
for me and it's much easier to not have to go back and change them to
spaces, but that's another matter entirely (I really don't want to get
into an editor battle here).

Either way, we should definitely put something in the Doc Project primer
about this.  I could've swore there was a style section there already,
but briefly looking now I don't see one.

- jim

-- 
- jim mock <mij@osdn.com> - O|S|D|N - open source development network -
- http://www.freebsdzine.org/ - jim@freebsdzine.org - jim@FreeBSD.org -

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




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