From owner-freebsd-doc Wed Aug 9 12:22:20 2000 Delivered-To: freebsd-doc@freebsd.org Received: from mail.ruhr.de (in-ruhr2.ruhr.de [141.39.224.60]) by hub.freebsd.org (Postfix) with SMTP id F3B5437BE82 for ; Wed, 9 Aug 2000 12:22:10 -0700 (PDT) (envelope-from ue@nathan.ruhr.de) Received: (qmail 92594 invoked by alias); 9 Aug 2000 19:23:58 -0000 Received: (from ue@localhost) by nathan.ruhr.de (8.9.3/8.9.3) id VAA16371; Wed, 9 Aug 2000 21:20:25 +0200 (CEST) (envelope-from ue) Date: Wed, 9 Aug 2000 21:20:25 +0200 From: Udo Erdelhoff To: Darryl Okahata 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> References: <20000809201712.B30032@mithrandr.moria.org> <200008091849.LAA01748@mina.soco.agilent.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.4i In-Reply-To: <200008091849.LAA01748@mina.soco.agilent.com>; from darrylo@soco.agilent.com on Wed, Aug 09, 2000 at 11:49:51AM -0700 Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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