diff options
author | Mike Krüger <mkrueger@xamarin.com> | 2017-08-03 15:35:59 +0300 |
---|---|---|
committer | Mike Krüger <mkrueger@xamarin.com> | 2017-08-03 15:35:59 +0300 |
commit | 5fd5cf919f7d6882a8e2df68cce83a3426b6333f (patch) | |
tree | daf27368c46aa6bbb316b941466460942dcd5b0d /main | |
parent | 12b8c473e811339452e0683160116c859f96b516 (diff) |
Fixed 'Bug 58570 - cut & paste always inserts tabs in xml'.
There is no real need for using policies here - the editor options are
already set according to the policies.
Diffstat (limited to 'main')
-rw-r--r-- | main/src/addins/Xml/Editor/BaseXmlEditorExtension.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/src/addins/Xml/Editor/BaseXmlEditorExtension.cs b/main/src/addins/Xml/Editor/BaseXmlEditorExtension.cs index 4871b51b13..018a46e2bd 100644 --- a/main/src/addins/Xml/Editor/BaseXmlEditorExtension.cs +++ b/main/src/addins/Xml/Editor/BaseXmlEditorExtension.cs @@ -550,8 +550,8 @@ namespace MonoDevelop.Xml.Editor //because that means there are closing tags on the line, and they de-indent the line they're on var endElementDepth = GetElementIndentDepth (Tracker.Engine.Nodes); var elementDepth = Math.Min (endElementDepth, startElementDepth); - - //FIXME: use policies + if (Editor.Options.TabsToSpaces) + return new string (' ', elementDepth * Editor.Options.TabSize); return new string ('\t', elementDepth /*+ attributeDepth*/); } |