Small question about else if and indent
Martin Vala <[email protected]> Tue, 20 May 2014 23:25:00 +0200
| Newsgroups | gmane.comp.gnu.indent.bugs |
|---|---|
| Message-ID | <1400621100.6371.3.camel@vala> |
Dear gnu indent support,
I have following code and i could format code using
indent -kr -pcs -br -nce -st test.c
int i = 0;
if (i == 100) {
sleep (100);
}
else if (i == 101) {
sleep (101);
}
else {
sleep (1);
}
I would like to break line after else in
else if
to become
else
if
And here is final output i need
int i = 0;
if (i == 100) {
sleep (100);
}
else
if (i == 101) {
sleep (101);
}
else {
sleep (1);
}
Is it possible to do it? I could not find any option for this case.
Thanks
Ciao
Martin