Autoindent doesn't always occur

Currently autoindent only kicks in as so: 
```
<div>|</div>
```

This allows it to also work with:
```
<div>|

</div>
```
nitpick: please use camelCase `nextIndent` instead of `next_indent`