Changes to Comments

This commit is contained in:
Rich 2011-03-11 15:46:51 +00:00
parent b43ea73257
commit ddb2ea162f

View File

@ -184,17 +184,17 @@ namespace Volian.Controls.Library
text = myTable.Lines.ToString(); text = myTable.Lines.ToString();
} }
// as a precaution, convert any \~ to \u160?. This is for Hard spaces. see the commentary in the // if we're working with a grid it won't go thru here.
// save portion of this code for an explanation.
if (!text.StartsWith(@"{\rtf")) if (!text.StartsWith(@"{\rtf"))
{ {
// as a precaution, convert any \~ to \u160?. This is for Hard spaces. see the commentary in the
// save portion of this code for an explanation.
text = text.Replace(@"\~", @"\u160?"); text = text.Replace(@"\~", @"\u160?");
text = text.Replace("\r\n", @"\par "); text = text.Replace("\r\n", @"\par ");
//if (text.IndexOf(@"\line") > -1) //if (text.IndexOf(@"\line") > -1)
// MessageBox.Show("Found rtf line"); // MessageBox.Show("Found rtf line");
text = text.Replace(@"\line", @"\par"); text = text.Replace(@"\line", @"\par");
// Now put symbol (for fixed fonts) or unicode font (proportional) around symbols // Now put symbol (for fixed fonts) or unicode font (proportional) around symbols
// These fonts are VESymbFix & Arial Unicode MS respectively, and the font table // These fonts are VESymbFix & Arial Unicode MS respectively, and the font table
// is actually defined in the StepRTB code. // is actually defined in the StepRTB code.