| Summary: | Code formatter's wrong behaviour on IF statement with single statement. | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | demnar7845 <suyandi> |
| Component: | PDT | Assignee: | Roy Ganor <ganoro> |
| Status: | CLOSED DUPLICATE | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | gadi |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Whiteboard: | |||
thanks, duplicate of #219234. *** This bug has been marked as a duplicate of bug 219234 *** Closing |
I'm using PDT 1.0.3. In editor (on php source code), when I run "Source -> Format", the statement under IF statement (not enclosed with curly bracketes "{" & "}") would get indented to left, this is wrong behaviour, it shouldn't be indented. For example: if (x) echo "hello"; After run "format", it would change to: if (x) echo "hello"; But if using curly brackets like this: if (x) { echo "hello"; } No change happened after run "format". Keep up the good work.