From 71bf704f6086c32d654db4d5a63ef943b234418e Mon Sep 17 00:00:00 2001 From: John Date: Tue, 2 Jul 2019 19:22:45 +0000 Subject: [PATCH] =?UTF-8?q?B2019-092=20=E2=80=93=20the=20=E2=80=9CStep=20w?= =?UTF-8?q?ith=20.0=E2=80=9D=20step=20type=20caused=20replace=20words=20th?= =?UTF-8?q?at=20are=20bolded=20and=20underlined=20to=20lose=20the=20space?= =?UTF-8?q?=20character=20that=20was=20after=20the=20word=20being=20replac?= =?UTF-8?q?ed.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PROMS/VEPROMS.CSLA.Library/Extension/DisplayText.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/PROMS/VEPROMS.CSLA.Library/Extension/DisplayText.cs b/PROMS/VEPROMS.CSLA.Library/Extension/DisplayText.cs index efaf6f5d..0d81ba13 100644 --- a/PROMS/VEPROMS.CSLA.Library/Extension/DisplayText.cs +++ b/PROMS/VEPROMS.CSLA.Library/Extension/DisplayText.cs @@ -2301,6 +2301,8 @@ namespace VEPROMS.CSLA.Library with = with.Replace(@"\b0\", @"\"); if (with.EndsWith(@"\b0")) with = with.Replace(@"\b0",""); + if (with.LastIndexOf(@"\") > with.LastIndexOf(" ")) // B2019-092 - make sure there is a space char to terminate remaining rft formatting command + with = with + " "; } bool IsUnderline = (((_Font.Style & E_Style.Underline) == E_Style.Underline) && with.Contains(@"\ul ")); // handle where replace words replaces a string with 'underline on'string'underline off', for example Point Beach @@ -2326,6 +2328,8 @@ namespace VEPROMS.CSLA.Library with = with.Replace(@"\ulnone\", @"\"); if (with.EndsWith(@"\ulnone")) with = with.Replace(@"\ulnone",""); + if (with.LastIndexOf(@"\") > with.LastIndexOf(" ")) // B2019-092 - make sure there is a space char to terminate remaining rft formatting command + with = with + " "; } string preceedingText = text.Substring(0, offset + foundMatch.MyMatch.Index); int ndxBold = preceedingText.LastIndexOf(@"\b");