Re: pgindent and multiline string constants

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pgindent and multiline string constants
Дата
Msg-id 2712.1196271138@sss.pgh.pa.us
обсуждение исходный текст
Ответ на pgindent and multiline string constants  (Peter Eisentraut <peter_e@gmx.net>)
Ответы Re: pgindent and multiline string constants  (Bruce Momjian <bruce@momjian.us>)
Список pgsql-hackers
Peter Eisentraut <peter_e@gmx.net> writes:
> Somehow pgindent appears to do odd things with multiline string constants, 
> such as

> somefunc(&blah,
>          "lots of text"
>          "with mulitple lines"
>          "like this");

> Afterwards this looks more like this:

> somefunc(&blah,
>      "lots of text"
>          "with mulitple lines"
>        "like this");

Sometimes it does that to keep the lines from extending past column 80.
I'm not sure that this is an improvement :-(, but anyway you can fix it
by breaking the string literal into smaller chunks so that there's no
line-wrapping going on in an 80-column view.
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Magnus Hagander
Дата:
Сообщение: Re: PG 7.3 is five years old today
Следующее
От: Magnus Hagander
Дата:
Сообщение: Re: [pgsql-www] Time to update list of contributors