Обсуждение: tab stop in README

Поиск
Список
Период
Сортировка

tab stop in README

От
yamt@mwd.biglobe.ne.jp (YAMAMOTO Takashi)
Дата:
hi,

i know that postgresql uses ts=4 for C source code.
but how about documatation?

src/backend/access/transam/README seems to have both of
ts=4 and ts=8 mixed.

YAMAMOTO Takashi


Re: tab stop in README

От
Peter Eisentraut
Дата:
On mån, 2011-08-22 at 04:09 +0000, YAMAMOTO Takashi wrote:
> i know that postgresql uses ts=4 for C source code.
> but how about documatation?

I'd say ideally don't use any tabs at all.

> src/backend/access/transam/README seems to have both of
> ts=4 and ts=8 mixed.

It appears to be geared for ts=4.  Could you send a patch or other
indication for what you think needs changing?



Re: tab stop in README

От
yamt@mwd.biglobe.ne.jp (YAMAMOTO Takashi)
Дата:
hi,

> On men, 2011-08-22 at 04:09 +0000, YAMAMOTO Takashi wrote:
>> i know that postgresql uses ts=4 for C source code.
>> but how about documatation?
> 
> I'd say ideally don't use any tabs at all.

i agree.

> 
>> src/backend/access/transam/README seems to have both of
>> ts=4 and ts=8 mixed.
> 
> It appears to be geared for ts=4.  Could you send a patch or other
> indication for what you think needs changing?

attached.

YAMAMOTO Takashi

> 
> 
> -- 
> Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-hackers

Re: tab stop in README

От
Robert Haas
Дата:
On Sun, Aug 28, 2011 at 8:28 PM, YAMAMOTO Takashi
<yamt@mwd.biglobe.ne.jp> wrote:
>> On men, 2011-08-22 at 04:09 +0000, YAMAMOTO Takashi wrote:
>>> i know that postgresql uses ts=4 for C source code.
>>> but how about documatation?
>>
>> I'd say ideally don't use any tabs at all.
>
> i agree.
>
>> It appears to be geared for ts=4.  Could you send a patch or other
>> indication for what you think needs changing?
>
> attached.

I'm confused by this patch, because it doesn't seem to get rid of all
the tabs in the file.  Nor does it seem to replace tabs with spaces.
It looks like it's just randomly removing and adding tabs in various
places.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


Re: tab stop in README

От
Robert Haas
Дата:
On Mon, Aug 29, 2011 at 8:44 PM, YAMAMOTO Takashi
<yamt@mwd.biglobe.ne.jp> wrote:
>> On Sun, Aug 28, 2011 at 8:28 PM, YAMAMOTO Takashi
>> <yamt@mwd.biglobe.ne.jp> wrote:
>>>> On men, 2011-08-22 at 04:09 +0000, YAMAMOTO Takashi wrote:
>>>>> i know that postgresql uses ts=4 for C source code.
>>>>> but how about documatation?
>>>>
>>>> I'd say ideally don't use any tabs at all.
>>>
>>> i agree.
>>>
>>>> It appears to be geared for ts=4.  Could you send a patch or other
>>>> indication for what you think needs changing?
>>>
>>> attached.
>>
>> I'm confused by this patch, because it doesn't seem to get rid of all
>> the tabs in the file.  Nor does it seem to replace tabs with spaces.
>> It looks like it's just randomly removing and adding tabs in various
>> places.
>
> the patch just fixes indent for ts=4, keep using tabs.

I've applied what I believe to be an appropriate fix.  I expanded the
tabs in the ASCII art but left the code examples alone.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


Re: tab stop in README

От
yamt@mwd.biglobe.ne.jp (YAMAMOTO Takashi)
Дата:
> On Sun, Aug 28, 2011 at 8:28 PM, YAMAMOTO Takashi
> <yamt@mwd.biglobe.ne.jp> wrote:
>>> On men, 2011-08-22 at 04:09 +0000, YAMAMOTO Takashi wrote:
>>>> i know that postgresql uses ts=4 for C source code.
>>>> but how about documatation?
>>>
>>> I'd say ideally don't use any tabs at all.
>>
>> i agree.
>>
>>> It appears to be geared for ts=4.  Could you send a patch or other
>>> indication for what you think needs changing?
>>
>> attached.
> 
> I'm confused by this patch, because it doesn't seem to get rid of all
> the tabs in the file.  Nor does it seem to replace tabs with spaces.
> It looks like it's just randomly removing and adding tabs in various
> places.

the patch just fixes indent for ts=4, keep using tabs.

should i run "expand -t4" and send the result?

YAMAMOTO Takashi

> 
> --
> Robert Haas
> EnterpriseDB: http://www.enterprisedb.com
> The Enterprise PostgreSQL Company