Re: [HACKERS] Indent
От | Thomas Lockhart |
---|---|
Тема | Re: [HACKERS] Indent |
Дата | |
Msg-id | 3828F278.3B2520CD@alumni.caltech.edu обсуждение исходный текст |
Ответ на | Re: [HACKERS] Indent (Bruce Momjian <maillist@candle.pha.pa.us>) |
Ответы |
Re: [HACKERS] Indent
|
Список | 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. pgindent *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, Right, I saw this the first time ;) My point is that this statement is ambiguous, particularly for those who didn't grow up in Pennsylvania or some other all-English locale. "four-space tabs" could imply that all tabs are filled with four spaces, but in fact pgindent replaces every four spaces with a tab. I haven't stumbled across any mention of setting text editors or printing, which if it was mentioned might reduce the possibility for confusion. - Thomas -- Thomas Lockhart lockhart@alumni.caltech.edu South Pasadena, California
В списке pgsql-hackers по дате отправления: