[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-indent] Single line if statements
From: |
david ingamells |
Subject: |
Re: [Bug-indent] Single line if statements |
Date: |
Wed, 13 Feb 2002 22:23:52 +0100 |
Glenn,
No there is no such option, but it seems reasonable to want one. I'll add it
to the wish list.
David.
On Tuesday 05 February 2002 6:41 pm, Glenn Coombs wrote:
> When I run the following code through indent:
>
> int
> foo(int val)
> {
> if (val < 0) return -1;
> }
>
> it reformats it thus:
>
> int
> foo(int val)
> {
> if (val < 0)
> return -1;
> }
>
> I want indent to leave the if statement all on one line (i.e. leave the
> code indented as it is in the first example). Is there an option to do
> this because I haven't been able to find it in the man page ?
>
> I am using indent version 2.2.6.
--
David Ingamells
address@hidden
+31 (013) 5093388 (home)
+31 065010947 (mobile)