bug-indent
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-indent] Single line if statements


From: Glenn Coombs
Subject: [Bug-indent] Single line if statements
Date: Tue, 5 Feb 2002 17:41:31 +0000

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.

--
Glenn Coombs



reply via email to

[Prev in Thread] Current Thread [Next in Thread]