* RichTextBox.cs: When saving the contents as a plain text, don't add
a new line for every Line structure, since the data in Document
already contains the new line characters. This avoids duplicated new
lines using the Save methods.
Fixes #445618.
svn path=/trunk/mcs/; revision=121147
+2008-12-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
+
+ * RichTextBox.cs: When saving the contents as a plain text, don't add
+ a new line for every Line structure, since the data in Document
+ already contains the new line characters. This avoids duplicated new
+ lines using the Save methods.
+ Fixes #445618.
+
2008-12-09 Sandy Armstrong <sanfordarmstrong@gmail.com>
* TreeView.cs: Expose ScrollBars as internal properties, for use by UIA
}
for (i = 1; i < document.Lines; i++) {
- bytes = encoding.GetBytes(document.GetLine(i).text.ToString() + Environment.NewLine);
+ bytes = encoding.GetBytes(document.GetLine(i).text.ToString());
data.Write(bytes, 0, bytes.Length);
}
bytes = encoding.GetBytes(document.GetLine(document.Lines).text.ToString());