Browse Source

Fix XML Tree View editor changing text file line endings to Unix format.

pull/6/merge
Matt Ward 13 years ago
parent
commit
fe25841b5f
  1. 3
      src/AddIns/DisplayBindings/XmlEditor/Project/Src/XmlTreeViewContainerControl.cs

3
src/AddIns/DisplayBindings/XmlEditor/Project/Src/XmlTreeViewContainerControl.cs

@ -200,7 +200,7 @@ namespace ICSharpCode.XmlEditor
/// comment node currently on display. /// comment node currently on display.
/// </summary> /// </summary>
public string TextContent { public string TextContent {
get { return textBox.Text; } get { return textBox.Text.Replace("\n", "\r\n"); }
set { textBox.Text = value; } set { textBox.Text = value; }
} }
@ -740,6 +740,7 @@ namespace ICSharpCode.XmlEditor
// //
this.textBox.Dock = System.Windows.Forms.DockStyle.Fill; this.textBox.Dock = System.Windows.Forms.DockStyle.Fill;
this.textBox.Location = new System.Drawing.Point(0, 0); this.textBox.Location = new System.Drawing.Point(0, 0);
this.textBox.Multiline = true;
this.textBox.Name = "textBox"; this.textBox.Name = "textBox";
this.textBox.Size = new System.Drawing.Size(375, 326); this.textBox.Size = new System.Drawing.Size(375, 326);
this.textBox.TabIndex = 2; this.textBox.TabIndex = 2;

Loading…
Cancel
Save