From da81a08c7544243c0c89178680955a0388b090d2 Mon Sep 17 00:00:00 2001 From: John Date: Fri, 7 Oct 2022 16:24:35 +0000 Subject: [PATCH] B2022-070 Added a check for a space after the RTF superscript command while comparing RO values to see if they need updated --- PROMS/VEPROMS.CSLA.Library/Extension/ContentExt.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/PROMS/VEPROMS.CSLA.Library/Extension/ContentExt.cs b/PROMS/VEPROMS.CSLA.Library/Extension/ContentExt.cs index f69fb30b..e5b7f956 100644 --- a/PROMS/VEPROMS.CSLA.Library/Extension/ContentExt.cs +++ b/PROMS/VEPROMS.CSLA.Library/Extension/ContentExt.cs @@ -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);