eruby html mode not indented correctly
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nXhtml |
Fix Committed
|
Medium
|
Unassigned |
Bug Description
This may be two bugs. I've attached edit.html.erb. I will attach template.txt which is the template buffer later if I can find a way.
The edit.html.erb attached is formatted by starting at the top line and hitting tab a few times and then moving down a line, put the cursor in the left most column and hit tab a few times, repeat.
The formatting of the ruby code in the template buffer is perfect if I start at the top and move down line by line. But the html is not indented properly. Notice the <p> tag at line 14. Lines 14 - 21 are indented two spaces too much and the last two lines are indented four spaces too much.
Now for the hard problem... Oh dear. I can't recreate the other problem. What had happened (somehow) is the sequence of lines in the template buffer got confused and a line was not where it was suppose to be. As a result, it would get indented incorrectly. I thought I know how to recreate this but I don't. I thought about not mentioning but I decided to anyway.
Attaching template buffer to help with debugging.