B2022-070 Added a check for a space after the RTF superscript command while comparing RO values to see if they need updated
This commit is contained in:
@@ -1225,8 +1225,11 @@ namespace VEPROMS.CSLA.Library
|
|||||||
}
|
}
|
||||||
|
|
||||||
string gg = Text.Substring(myIndex, myLength);
|
string gg = Text.Substring(myIndex, myLength);
|
||||||
|
string gg1 = Content.MakeConsistentFormat(gg).Replace("\\up2 -", "\\up2-").Replace("\\up2 \\u8209?", "\\up2\\u8209?");
|
||||||
if (((fileNameOnly == null) && (Content.MakeConsistentFormat(gg) != Content.MakeConsistentFormat(newvalue))) || ((fileNameOnly != null) && !(gg.Replace(@"\u8209?", "-").StartsWith(fileNameOnly) && newvalue.Replace(@"\u8209?", "-").StartsWith(fileNameOnly))))
|
string newvalue1 = Content.MakeConsistentFormat(newvalue).Replace("\\up2 -", "\\up2-").Replace("\\up2 \\u8209?", "\\up2\\u8209?");
|
||||||
|
if (((fileNameOnly == null) && (gg1 !=newvalue1))
|
||||||
|
|| ((fileNameOnly != null) && !(gg.Replace(@"\u8209?", "-").StartsWith(fileNameOnly)
|
||||||
|
&& newvalue.Replace(@"\u8209?", "-").StartsWith(fileNameOnly))))
|
||||||
{
|
{
|
||||||
_Text = Text.Substring(0, myIndex) + newvalue + _Text.Substring(myIndex + myLength);
|
_Text = Text.Substring(0, myIndex) + newvalue + _Text.Substring(myIndex + myLength);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user