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/src
diff options
context:
space:
mode:
authorMike Krüger <mkrueger@xamarin.com>2017-08-04 13:35:58 +0300
committerGitHub <noreply@github.com>2017-08-04 13:35:58 +0300
commit60bc2bde828947085d490f37107a4fa720945357 (patch)
treedc927ae125e0d973af8e2a0342b8cc24552ac9c5 /main/src
parent800f88c3d77245321244e825e7eb4cfd404e39b8 (diff)
parent5fd5cf919f7d6882a8e2df68cce83a3426b6333f (diff)
Merge pull request #2862 from mono/master-fix58570
Fixed 'Bug 58570 - cut & paste always inserts tabs in xml'.
Diffstat (limited to 'main/src')
-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*/);
}