diff --git a/PROMS/Formats/fmtall/wst2all.xml b/PROMS/Formats/fmtall/wst2all.xml index af6414a5..dc24dfb7 100644 Binary files a/PROMS/Formats/fmtall/wst2all.xml and b/PROMS/Formats/fmtall/wst2all.xml differ diff --git a/PROMS/Formats/fmtall/wstdcsall.xml b/PROMS/Formats/fmtall/wstdcsall.xml index 020fc4c6..5d5490b3 100644 Binary files a/PROMS/Formats/fmtall/wstdcsall.xml and b/PROMS/Formats/fmtall/wstdcsall.xml differ diff --git a/PROMS/Formats/fmtall/wstsamall.xml b/PROMS/Formats/fmtall/wstsamall.xml index 8d36b794..65177ed5 100644 Binary files a/PROMS/Formats/fmtall/wstsamall.xml and b/PROMS/Formats/fmtall/wstsamall.xml differ diff --git a/PROMS/VEPROMS.CSLA.Library/Extension/DisplayText.cs b/PROMS/VEPROMS.CSLA.Library/Extension/DisplayText.cs index 689acf99..d0676dd5 100644 --- a/PROMS/VEPROMS.CSLA.Library/Extension/DisplayText.cs +++ b/PROMS/VEPROMS.CSLA.Library/Extension/DisplayText.cs @@ -179,13 +179,6 @@ namespace VEPROMS.CSLA.Library @"\par\par\par "); } } - // Replace Hard Hyphens with normal hyphen so the PDF search for hyphens will work properly - if (text.Contains(@"\u8209?") && epMode == E_EditPrintMode.Print) - { - // Handle RTF Tokens followed immediately by a hard hyphen - text =Regex.Replace(text, @"(?<=\\[^\\?' \r\n\t]+)\\u8209\?", " -"); - text = text.Replace(@"\u8209?", "-"); - } // Replace backslash symbol with normal backslash so the PDF search for backslashes will work properly if (text.Contains(@"\u9586?") && epMode == E_EditPrintMode.Print) { @@ -282,6 +275,15 @@ namespace VEPROMS.CSLA.Library } } + // B2018-041 moved this logic here from DisplayText() so the it does not defeat the Upcase RO's after Dash logic + // Replace Hard Hyphens with normal hyphen so the PDF search for hyphens will work properly + if (text.Contains(@"\u8209?") && epMode == E_EditPrintMode.Print) + { + // Handle RTF Tokens followed immediately by a hard hyphen + text = Regex.Replace(text, @"(?<=\\[^\\?' \r\n\t]+)\\u8209\?", " -"); + text = text.Replace(@"\u8209?", "-"); + } + // if in print mode, view mode, or non-active richtextbox do replace words. Only if in // actual edit mode are replace words left as is. // But don't do ReplaceWords if the TurnOffReplaceWords format flag is set