bug-indent
[Top][All Lists]
Advanced

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

Fwd: RFE: option to 'cuddle' bracketless targets of conditional statemen


From: L A Walsh
Subject: Fwd: RFE: option to 'cuddle' bracketless targets of conditional statements
Date: Mon, 23 Jan 2017 21:46:43 -0800
User-agent: Thunderbird

I didn't see this option in my version of 'indent'

(GNU indent 2.2.10), so forgive me if it is already there, but
would it be possible to add an option to put or keep things like:

if (done) return done;

if (done)
  return done;

for(i=0; i<100; ++i) printf("%d\n", i);

while (! done) done=get_status();


on 1 line?

Primarily thinking about bracketless targets that follow a conditional
that easily fit on 1 line.

Thanks!










reply via email to

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