Autoindent doesn't always occur

Currently autoindent only kicks in as so: 
```
<div>|</div>
```

This allows it to also work with:
```
<div>|

</div>
```
fixed

On 29 October 2014 11:59, Harutyun Amirjanyan <notifications@github.com>
wrote:

> In lib/ace/mode/behaviour/xml.js:
>
> > +                if (!token) {
> > +                    return;
> > +                }
> > +
> > +                var tag = token.value;
> > +                var column = iterator.getCurrentTokenColumn()-1;
> > +
> > +                //don't indent after closing tag
> > +                token = iterator.stepBackward();
> > +                if (!token || token.type.indexOf("end-tag") !== -1) {
> > +                    return;
> > +                }
> > +
> > +                if (this.voidElements && !this.voidElements[tag]) {
> > +                    var nextToken = session.getTokenAt(cursor.row, cursor.column+1);
> > +                    var next_indent = lang.stringRepeat(" ", column);
>
> Hmm, could you show an example? I think column doesn't work well with
> other tags
> in case of
>
>     <p><a>|</a></p>
>
> it should become
>
>     <p><a>
>            |
>     </a></p>
>
> but now it becomes
>
>     <p><a>
>            |
>        </a></p>
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/ajaxorg/ace/pull/2198/files#r19532753>.
>



-- 
Best regards,
Adam Jimenez