[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Small question about else if and indent
From: |
Martin Vala |
Subject: |
Small question about else if and indent |
Date: |
Tue, 20 May 2014 23:25:00 +0200 |
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Small question about else if and indent,
Martin Vala <=