Gentoo Archives: gentoo-dev

From: "Aaron W. Swenson" <titanofold@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] About how many spaces a tab represents
Date: Mon, 15 Apr 2013 11:11:01
Message-Id: 20130415111047.GB5854@gengoff.local.grandmasfridge.org
In Reply to: Re: [gentoo-dev] About how many spaces a tab represents by Pacho Ramos
1 On Mon, Apr 15, 2013 at 08:15:08AM +0200, Pacho Ramos wrote:
2 > El lun, 15-04-2013 a las 07:21 +0200, Michał Górny escribió:
3 > > On Sun, 14 Apr 2013 23:22:04 +0200
4 > > Pacho Ramos <pacho@g.o> wrote:
5 > >
6 > > > I noticed this problem now that joe was modified to comply with this
7 > > > rule set in devmanual:
8 > > > http://devmanual.gentoo.org/ebuild-writing/file-format/index.html#indenting-and-whitespace
9 > > >
10 > > > It stated a tab represents 4 spaces. Where does this rule come from? Why
11 > > > 8 spaces wasn't chosen instead? I say that because looks like 8 spaces
12 > > > equivalence is used by tools like "cat", "less", even CVS reports in
13 > > > gentoo-commits show tabs as 8 spaces instead of 4.
14 > >
15 > > Hmm, does that have implications on anything else but counting line
16 > > width?
17 > >
18 >
19 > Well, I was a bit surprised an ebuild I was thinking was looking in a
20 > way, was really shown a bit different when, for example, simply running
21 > less over it :/
22 >
23
24 A tab is a tab. How wide it is, is up to you. The convention is that
25 four spaces should be replace by a tab. You can configure tab width
26 for your terminal with:
27
28 setterm -regtabs 4
29
30 If you want to, that is.
31
32 --
33 Mr. Aaron W. Swenson
34 Gentoo Linux Developer
35 Email : titanofold@g.o
36 GnuPG FP : 2C00 7719 4F85 FB07 A49C 0E31 5713 AA03 D1BB FDA0
37 GnuPG ID : D1BBFDA0

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-dev] About how many spaces a tab represents Alec Warner <antarus@g.o>
Re: [gentoo-dev] About how many spaces a tab represents "Andreas K. Huettel" <dilfridge@g.o>