Home » PHP » PHP_Beautifier » Bug #2104
BSD bracing problem
Details
| Submitted | 2004-08-10 17:58 UTC |
|---|---|
| From | justin at onyourmark dot com |
| Assigned | clbustos |
| Status | Closed |
| Package | PHP_Beautifier |
| PHP Version | 5.0.0 |
| OS | FreeBSD 4.10-CURRENT |
| Roadmaps | (Not assigned) |
Comments
[2004-08-10 17:58 UTC] justin at onyourmark dot com
Description:
------------
IndentStyle(style=bsd) does not properly place a line return between the close brace of a block and the else keyword.
Reproduce code:
---------------
if([expression])
{
[statements]
} else {
[statements]
}
Expected result:
----------------
if([expression])
{
[statements]
}
else
{
[statements]
}
Actual result:
--------------
if([expression])
{
[statements]
} else
{
[statements]
}