Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorMike Krüger <mkrueger@xamarin.com>2017-08-03 15:35:59 +0300
committerMike Krüger <mkrueger@xamarin.com>2017-08-03 15:35:59 +0300
commit5fd5cf919f7d6882a8e2df68cce83a3426b6333f (patch)
treedaf27368c46aa6bbb316b941466460942dcd5b0d /main
parent12b8c473e811339452e0683160116c859f96b516 (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.cs4
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*/);
}