From: | Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Thomas Lockhart <lockhart(at)alumni(dot)caltech(dot)edu> |
Cc: | Peter Eisentraut <peter_e(at)gmx(dot)net>, hackers(at)postgreSQL(dot)org |
Subject: | Re: [HACKERS] Indent |
Date: | 1999-11-10 03:55:47 |
Message-ID: | 199911100355.WAA02932@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
> > "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?
>
> The FAQ isn't clear on this at all. pg_indent *assumes* that all tabs
> will be four spaces. One must set vi or emacs to tab every four spaces
> for things to look right.
DEV FAQ says:
<I>pgindent</I> will format source files to match our standard format,
which has four-space tabs,
>
> Apparently we never send source code directly to a printer ;)
I run it through vgrind or use crisp to print with color syntax
highlighting. However, I do convert the tabs to 4-character spaces
before printing. It is a pain, but indenting/unindenting without
tab=indent level is a pain, and 8-space tabs are too large.
--
Bruce Momjian | http://www.op.net/~candle
maillist(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
From | Date | Subject | |
---|---|---|---|
Next Message | The Hermit Hacker | 1999-11-10 04:07:13 | Re: [HACKERS] CORBA STATUS |
Previous Message | Thomas Lockhart | 1999-11-10 03:09:55 | Re: [HACKERS] Indent |