Change RTF token \line to \pard\line so that text displays properly.

Pause timer to refresh the treeview while items are being added.
This commit is contained in:
Rich
2016-02-01 21:30:07 +00:00
parent c159a9889f
commit f02cce2ced
2 changed files with 18 additions and 0 deletions

View File

@@ -312,6 +312,8 @@ namespace VEPROMS.CSLA.Library
// save portion of this code for an explanation.
text = text.Replace(@"\~", @"\u160?");
text = text.Replace("\r\n", @"\line "); // replace a \r\n with a \line instead of a \par
text = text.Replace(@"\line", @"\pard\line");
text = text.Replace(@"\pard\pard\line", @"\pard\line");
//if (text.IndexOf(@"\line") > -1)
// MessageBox.Show("Found rtf line");
//text = text.Replace(@"\line", @"\par"); // we don't want to replace the \line part of bug fix B2015-140