diff --git a/src/AddIns/DisplayBindings/XmlEditor/Project/Src/XmlTreeViewContainerControl.cs b/src/AddIns/DisplayBindings/XmlEditor/Project/Src/XmlTreeViewContainerControl.cs index a9d5668e5d..80c563eb32 100644 --- a/src/AddIns/DisplayBindings/XmlEditor/Project/Src/XmlTreeViewContainerControl.cs +++ b/src/AddIns/DisplayBindings/XmlEditor/Project/Src/XmlTreeViewContainerControl.cs @@ -200,7 +200,7 @@ namespace ICSharpCode.XmlEditor /// comment node currently on display. /// public string TextContent { - get { return textBox.Text; } + get { return textBox.Text.Replace("\n", "\r\n"); } set { textBox.Text = value; } } @@ -740,6 +740,7 @@ namespace ICSharpCode.XmlEditor // this.textBox.Dock = System.Windows.Forms.DockStyle.Fill; this.textBox.Location = new System.Drawing.Point(0, 0); + this.textBox.Multiline = true; this.textBox.Name = "textBox"; this.textBox.Size = new System.Drawing.Size(375, 326); this.textBox.TabIndex = 2;