diff --git a/PROMS/Volian.Controls.Library/DisplayText.cs b/PROMS/Volian.Controls.Library/DisplayText.cs index f7e76388..6e92e882 100644 --- a/PROMS/Volian.Controls.Library/DisplayText.cs +++ b/PROMS/Volian.Controls.Library/DisplayText.cs @@ -408,7 +408,7 @@ namespace Volian.Controls.Library // (\\[^v' \\]+)* --> look for rtf commands but exclude \' before the \v // \\v(\\[^v \\]+)* --> look for rtf commands after the \v // if it turns out that if ro's have any embedded unicode characters this needs expanded, such as /u8209? (hard hyphen) - string lookFor = string.Format(@""); + string lookFor = string.Format(@""); MatchCollection matches = Regex.Matches(text, lookFor); string prevValue = null; for (int i = matches.Count - 1; i >= 0; i--) @@ -445,7 +445,6 @@ namespace Volian.Controls.Library if (!_MyItemInfo.ActiveFormat.PlantFormat.FormatData.ROData.AllUnits) prevValue = newvalue; newvalue = DoROReplaceWords(_MyFormat.PlantFormat.FormatData.SectData.ReplaceStrList, newvalue, _MyItemInfo.IsHigh); if (isSetpoint) newvalue = ReplaceSpaceWithHardspace(newvalue); - newvalue = newvalue.Replace("{", @"\{").Replace("}", @"\}"); if (gg != newvalue) text = text.Substring(0, myIndex) + newvalue + text.Substring(myIndex + myLength); } @@ -502,7 +501,7 @@ namespace Volian.Controls.Library { bool undtran = _MyItemInfo.ActiveFormat.PlantFormat.FormatData.TransData.Underline; string strippedText = StaticStripRtfCommands(text); - string lookFor = string.Format(@""); + string lookFor = string.Format(@""); MatchCollection matches = Regex.Matches(text, lookFor); if (matches.Count == 0) return text; string retstr = text; @@ -525,7 +524,6 @@ namespace Volian.Controls.Library myLength += m.Groups[3].Length; } string newvalue = text.Substring(myIndex, myLength); - newvalue = newvalue.Replace("{", @"\{").Replace("}", @"\}"); //System.Text.RegularExpressions.Group g = m.Groups[3]; string beforeTran = retstr.Substring(0, myIndex); string afterTran = retstr.Substring(myIndex + myLength); diff --git a/PROMS/Volian.Controls.Library/GridItem.cs b/PROMS/Volian.Controls.Library/GridItem.cs index 5a3295e4..e539b6d5 100644 --- a/PROMS/Volian.Controls.Library/GridItem.cs +++ b/PROMS/Volian.Controls.Library/GridItem.cs @@ -502,7 +502,7 @@ namespace Volian.Controls.Library { // see if there are any links and save these so that any deleted ROs or transitions in the // steprtb can have associated usages/transitions records removed from the database. - string lookFor = string.Format(@""); + string lookFor = string.Format(@""); MatchCollection matches = Regex.Matches((string)MyFlexGrid[r, c], lookFor); for (int i = matches.Count - 1; i >= 0; i--) {