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:
parent
35c1cd151a
commit
da81a08c75
@ -1225,8 +1225,11 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
|
||||
string gg = Text.Substring(myIndex, myLength);
|
||||
|
||||
if (((fileNameOnly == null) && (Content.MakeConsistentFormat(gg) != Content.MakeConsistentFormat(newvalue))) || ((fileNameOnly != null) && !(gg.Replace(@"\u8209?", "-").StartsWith(fileNameOnly) && newvalue.Replace(@"\u8209?", "-").StartsWith(fileNameOnly))))
|
||||
string gg1 = Content.MakeConsistentFormat(gg).Replace("\\up2 -", "\\up2-").Replace("\\up2 \\u8209?", "\\up2\\u8209?");
|
||||
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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user