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


_______________________________________________
bug-indent mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-indent

Reply via email to