Skip site navigation (1) Skip section navigation (2)

Re: 4 spaces versus tabs

From: Guillaume Lelarge <guillaume(at)lelarge(dot)info>
To: Magnus Hagander <magnus(at)hagander(dot)net>
Cc: Dave Page <dpage(at)pgadmin(dot)org>, pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: Re: 4 spaces versus tabs
Date: 2010-11-02 21:49:34
Message-ID: 4CD0876E.2090706@lelarge.info (view raw or flat)
Thread:
Lists: pgadmin-hackers
Le 24/10/2010 08:10, Guillaume Lelarge a écrit :
> Le 24/10/2010 08:05, Magnus Hagander a écrit :
>> On Sun, Oct 24, 2010 at 07:49, Dave Page <dpage(at)pgadmin(dot)org> wrote:
>>> On Sun, Oct 24, 2010 at 2:22 PM, Guillaume Lelarge
>>> <guillaume(at)lelarge(dot)info> wrote:
>>>> IIRC, we should use spaces and not tabs. If I look into the code, I see
>>>> many tabs in it. I can of course configure my editor to display them as
>>>> four tabs, but I would really like to get rid of them.
>>>>
>>>> Any objections? because it would be a hell of a patch (90427 replacements)
>>>
>>> Go for it. The project standard is for spaces.
>>>
>>> Though, if we're going to make such a big change, I have to wonder if
>>> tabs would be a more convenient choice in hindsight...
>>
>> Also if going there - has anybody investigated if it's possible to get
>> pgindent to work on C++ files? Or if there's another similar tool we
>> could/should use?
>>
> 
> I thought about it, but didn't actually look more into this. That could
> be a better way to deal with it.
> 

Tried it on some of our source files. I think it'll require quite a lot
of work before we can have something more or less good.


-- 
Guillaume
 http://www.postgresql.fr
 http://dalibo.com

In response to

pgadmin-hackers by date

Next:From: Guillaume LelargeDate: 2010-11-02 21:52:45
Subject: Re: 4 spaces versus tabs
Previous:From: Guillaume LelargeDate: 2010-11-02 18:38:38
Subject: Re: Ticket 269: Add support for 9.1 ALTER TYPE new syntax for enum

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group