B2022-082: Search for THEN STOP not finding occurrences in RNOs

This commit is contained in:
2022-07-29 13:32:16 +00:00
parent 8b21a92729
commit 78bd41dc56
3 changed files with 35 additions and 18 deletions

View File

@@ -2965,6 +2965,9 @@ namespace VEPROMS.CSLA.Library
public static string StripRtfFormatting(string rtf)
{
string retval = rtf;
// B2022-082: underline/bold of word removes space between 2 words in DisplayText
retval = Regex.Replace(retval, @"\\ulnone\\b0 ?", "");
retval = Regex.Replace(retval, @"\\b0\\ulnone ?", "");
retval = Regex.Replace(retval, @"\\b0 ?", "");
retval = Regex.Replace(retval, @"\\b ?", "");
retval = Regex.Replace(retval, @"\\ulnone ?", "");