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

L A Walsh <[email protected]> Mon, 23 Jan 2017 21:46:43 -0800
Newsgroups gmane.comp.gnu.indent.bugs
Message-ID <[email protected]>
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!