pgindent and multiline string constants - Mailing list pgsql-hackers

From Peter Eisentraut
Subject pgindent and multiline string constants
Date
Msg-id 200711281141.45658.peter_e@gmx.net
Whole thread Raw
Responses Re: pgindent and multiline string constants
List 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 by date:

Previous
From: Тюрин Дмитрий
Date:
Subject: SQL:2008 (some correction)
Next
From: Alvaro Herrera
Date:
Subject: Re: Still a NOTICE in dict_thesaurus.c