Indentation bug
3 posts
• Page 1 of 1
Indentation bug
If you have the following peace code:
if(true){
\t$a = 2;
}else if(true){
\t\t\s\s$b = 43;
}
The moment you hit ; on the line with the $b, it sends it two spaces and one tab MORE than it should (I pasted it after formatting). If there is NO SPACE between else and if, it sends it one space futher, like this:
if(true){
\t$a = 2;
}elseif(true){
\t\s$b = 43;
}
Its really ease to reproduce. Just use blank php file with this code in it.
P.S.
\t = TAB
\s = SPACE
if(true){
\t$a = 2;
}else if(true){
\t\t\s\s$b = 43;
}
The moment you hit ; on the line with the $b, it sends it two spaces and one tab MORE than it should (I pasted it after formatting). If there is NO SPACE between else and if, it sends it one space futher, like this:
if(true){
\t$a = 2;
}elseif(true){
\t\s$b = 43;
}
Its really ease to reproduce. Just use blank php file with this code in it.
P.S.
\t = TAB
\s = SPACE
Welcome to the zone where normal things don't happen very often.
- BladeMF
- Posts: 346
- Joined: October 10th, 2012, 7:14 am
Re: Indentation bug
Hi Vladislav,
I'll include into our formatting test cases and fix it in the upcomming update.
Thank you!
I'll include into our formatting test cases and fix it in the upcomming update.
Thank you!
Miloslav Beno │ DEVSENSE s.r.o. │ @miloslavbeno │ miloslav@devsense.com
-
Miloslav Beno - Posts: 1252
- Joined: January 7th, 2012, 8:36 pm
Re: Indentation bug
This is fixed in newest release.
Miloslav Beno │ DEVSENSE s.r.o. │ @miloslavbeno │ miloslav@devsense.com
-
Miloslav Beno - Posts: 1252
- Joined: January 7th, 2012, 8:36 pm
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 32 guests