Re: pgindent and multiline string constants - Mailing list pgsql-hackers

From Tom Lane
Subject Re: pgindent and multiline string constants
Date
Msg-id 2712.1196271138@sss.pgh.pa.us
Whole thread Raw
In response to pgindent and multiline string constants  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: pgindent and multiline string constants  (Bruce Momjian <bruce@momjian.us>)
List pgsql-hackers
Peter Eisentraut <peter_e@gmx.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


pgsql-hackers by date:

Previous
From: Magnus Hagander
Date:
Subject: Re: PG 7.3 is five years old today
Next
From: Magnus Hagander
Date:
Subject: Re: [pgsql-www] Time to update list of contributors