pgindent and multiline string constants

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема pgindent and multiline string constants
Дата
Msg-id 200711281141.45658.peter_e@gmx.net
обсуждение исходный текст
Ответы Re: pgindent and multiline string constants  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
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");

As an example, compare these two files:

http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/adt/xml.c?rev=1.56;content-type=text%2Fplain
http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/adt/xml.c?rev=1.57;content-type=text%2Fplain

function map_sql_type_to_xmlschema_type() somewhere near the end of the file; 
look at the appendStringInfo(&result, ...) calls.

-- 
Peter Eisentraut
http://developer.postgresql.org/~petere/


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

Предыдущее
От: Тюрин Дмитрий
Дата:
Сообщение: SQL:2008 (some correction)
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: Still a NOTICE in dict_thesaurus.c