Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-hackers by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group