Perltidy option to generate/keep BSD Style of bracketing ?

Perltidy option to generate/keep BSD Style of bracketing ?

am 19.04.2008 22:00:29 von Asim Suter

By default it generates code like K&R style:

if( ......................... ){


}

which I do not like:

========================

I'd like it generate BSD style like following:


if( ........................ )
{

}

Is there an option in perltidy to achieve that ?
I don't seem to find one in perltify help.

TIA
Asim

Re: Perltidy option to generate/keep BSD Style of bracketing ?

am 19.04.2008 22:25:20 von Asim Suter

-l gnu seems to do the job.

"Asim Suter" wrote in message
news:1208635229.736177@sj-nntpcache-3.cisco.com...
>
> By default it generates code like K&R style:
>
> if( ......................... ){
>
>
> }
>
> which I do not like:
>
> ========================
>
> I'd like it generate BSD style like following:
>
>
> if( ........................ )
> {
>
> }
>
> Is there an option in perltidy to achieve that ?
> I don't seem to find one in perltify help.
>
> TIA
> Asim
>