From 631695a0e4aaa62baca6902031b91252eb94fc45 Mon Sep 17 00:00:00 2001 From: Adam Jimenez Date: Mon, 20 Oct 2014 17:30:26 +0100 Subject: [PATCH] Autoindent doesn't always occur Currently autoindent only kicks in as so: ```
|
``` This allows it to also work with: ```
|
``` --- lib/ace/mode/behaviour/xml.js | 34 ++++++++++++++++++++++++++-------- 1 file changed, 26 insertions(+), 8 deletions(-) diff --git a/lib/ace/mode/behaviour/xml.js b/lib/ace/mode/behaviour/xml.js index bd0574c6..eaa570ed 100644 --- a/lib/ace/mode/behaviour/xml.js +++ b/lib/ace/mode/behaviour/xml.js @@ -150,15 +150,33 @@ var XmlBehaviour = function () { if (text == "\n") { var cursor = editor.getCursorPosition(); var line = session.getLine(cursor.row); - var rightChars = line.substring(cursor.column, cursor.column + 2); - if (rightChars == '