Re: pgindent and multiline string constants

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: pgindent and multiline string constants
Date: 2007-11-28 17:32:18
Message-ID: 2712.1196271138@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Peter Eisentraut <peter_e(at)gmx(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Magnus Hagander 2007-11-28 17:34:57 Re: [HACKERS] Time to update list of contributors
Previous Message Magnus Hagander 2007-11-28 17:28:54 Re: PG 7.3 is five years old today