Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Aug 2000 21:20:25 +0200
From:      Udo Erdelhoff <ue@nathan.ruhr.de>
To:        Darryl Okahata <darrylo@soco.agilent.com>
Cc:        freebsd-doc@FreeBSD.ORG
Subject:   Re: TAB vs 8. Spaces (was Re: cvs commit: doc/en_US.ISO_8859-1/books/faq book.sgml)
Message-ID:  <20000809212025.H3413@nathan.ruhr.de>
In-Reply-To: <200008091849.LAA01748@mina.soco.agilent.com>; from darrylo@soco.agilent.com on Wed, Aug 09, 2000 at 11:49:51AM -0700
References:  <20000809201712.B30032@mithrandr.moria.org> <200008091849.LAA01748@mina.soco.agilent.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Aug 09, 2000 at 11:49:51AM -0700, Darryl Okahata wrote:
> > On Wed 2000-08-09 (19:11), Udo Erdelhoff wrote:
> > > The size of the diff worried me. The main reason is the amount of
> > > TABs in revision 1.87. The FDP Primer demands spaces for indentation
> > > and my tool sticks to that rule.
> 
>      Here, "cvs diff -b" is your friend ("-b" ignores whitespace
> differences).  I'll let others speak on the validity of using tabs
> vs. spaces.

The purpose of the diff is to fix the FAQ's indentations and formatting.
Some of the neccessary changes are lost if I use diff -b.

>> [2 spaces, 4 spaces, 6 spaces, TAB, TAB + 2spaces, ...]

>      Yes, this is the (correct) rule, unlike various horribly broken PC
> editors and IDEs.  A tab character is supposed to go to the next
> 8-character column boundary.

That's the way I'd use spaces and TABs in every document that's not an SGML
source for the F(G)DP. The FDP primer and the examples in it don't use
TABs and the section about indentation talks about adding/removing 2
spaces for every indentation level.

> > Actually, I'm not at all sure if emacs does it this way.  Vim does,
> > though.
> 
>      Emacs does it this way by default.  You can also tell Emacs to use only
> spaces (no tabs), though.

The sample settings for vim (doc/share/sgml/vim) enforce "spaces only"
for .sgml/.html/.ent-files.

These contradicting signals are one of the main reasons for my question.

/s/Udo
-- 
Getting a SCSI chain working is perfectly simple if you remember that there
must be exactly three terminations: one on one end of the cable, one on the
far end, and the goat, terminated over the SCSI chain with a silver-handled
knife whilst burning *black* candles.


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




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