pgindent and multiline string constants

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-hackers(at)postgresql(dot)org
Subject: pgindent and multiline string constants
Date: 2007-11-28 10:41:44
Message-ID: 200711281141.45658.peter_e@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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/

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2007-11-28 12:20:35 Re: Still a NOTICE in dict_thesaurus.c
Previous Message Тюрин Дмитрий 2007-11-28 10:29:47 SQL:2008 (some correction)