--- Peter Eisentraut <peter_e@gmx.net> wrote:
> From FAQ_DEV:
> 
> "pgindent will format source files to match our standard format, which
>  has four-space tabs, and an indenting format specified by flags to the
>  your operating system's utility indent."
> 
> Then why are all files indented with eight spaces? I personally like the
> four spaces, straight bsd style in Emacs and -orig in indent. But at
> least
> it should be consistent.
> 
> Also, how can I prevent this from happening:
> 
> void
> print_copyright(void)
> {
>         puts(
>                  "
>                  PostgreSQL Data Base Management System
>  
>                  Copyright(c) 1996 - 9 PostgreSQL Global Development
> Group
>   
> instead of
> 
> void                                                                    
>          
> print_copyright(void)                                                   
>          
> {                                                                       
>          
>         puts(                                                           
>          
> "                                                                
> PostgreSQL Data Base Management System
> 
> Copyright(c) 1996 - 9 PostgreSQL Global Development Group
> 
> ?
> Looks really ugly in the output.

Amen. I hold myself to several rules when writing code, one
of which is that no single line exceed 80 characters in 
length, which is of rare occurence in the backend code.

Mike Mascari
(mascarim@yahoo.com)




=====

__________________________________________________
Do You Yahoo!?
Bid and sell for free at http://auctions.yahoo.com

Tue, 9 Nov 1999 17:24:19 -0800 (PST)
Mike Mascari <mascarim@yahoo.com>
Re: [HACKERS] Indent
> Amen. I hold myself to several rules when writing code, one
> of which is that no single line exceed 80 characters in 
> length, which is of rare occurence in the backend code.

With 4-space tabs, the code is pretty good. 
-- 
  Bruce Momjian                        |  http://www.op.net/~candle
  maillist@candle.pha.pa.us            |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

Tue, 9 Nov 1999 20:55:50 -0500 (EST)
Bruce Momjian <maillist@candle.pha.pa.us>
Re: [HACKERS] Indent
> 
> > Amen. I hold myself to several rules when writing code, one
> > of which is that no single line exceed 80 characters in 
> > length, which is of rare occurence in the backend code.
> 
> With 4-space tabs, the code is pretty good. 

Tabs vary from system to system, printer to printer etc. For the sake of
readability I have learnt to ignore the tab key when writing code and use
2 spaces for indenting and 80 columns... my tuppence worth.

Regards
Theo

Wed, 10 Nov 1999 10:15:52 +0200 (SAST)
Theo Kramer <theo@flame.flame.co.za>
Re: [HACKERS] Indent