Sublime Forum

Html indenting is not smart

#1

Frequently when I am writing html, I write the opening and closing tags like this:

Then I hop up one line and press enter to give me a blank line between the two tags. I don’t expect the (any) editor to be able to scan back 400 lines looking for the opening tag, and by doing this I always ensure I have the closure required. What I actually get is this:

<p>
    </p>

I then backdent the offending closure and go and create my blank line between. If I write a closure on the nicely indented line between, it backdents the closure:

After some experimentation, I have found that the following is true, and results in the error:
1.Create a line with an opening tag
2. on the next line, create any closing tag
You can create as many blank lines after the opening tag as you like, and the closure still fails. If you enter any text on lines between the opening and closure tag, the closure is properly backdented.

0 Likes

#2

Same here- build 2165

0 Likes