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

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

pgsql-hackers by date

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

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