Re: [HACKERS] Indent
От | Bruce Momjian |
---|---|
Тема | Re: [HACKERS] Indent |
Дата | |
Msg-id | 199911100355.WAA02932@candle.pha.pa.us обсуждение исходный текст |
Ответ на | Re: [HACKERS] Indent (Thomas Lockhart <lockhart@alumni.caltech.edu>) |
Список | 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@candle.pha.pa.us | (610) 853-3000+ If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill, Pennsylvania19026
В списке pgsql-hackers по дате отправления: